Ben bir dize var
8,7,13,14,16
Nedir, belirli bir sayı bu dizede mevcut olup olmadığını belirlemek için en kolay yolu nedir?
$numberA = "13";
$string = "8,7,13,14,16";
if($string magic $numberA){
$result = "Yeah, that number is in there";
} else {
$result = "Sorry.";
}
Sihirli arıyor.