5
$idofdb = "25";
$myArray = array();
foreach ( $fthi as $codigo ) {
$myArray[] = $codigo['ImoCodigo'];
}
$checkValues = array_values($myArray);
$checkString = implode(',', $checkValues); // 3,4,5,6,7,8,9,10,11,12,13,18,19,14,15,2
I’d like to know how to compare $idofdb with $checkString to find out if $idofdb is registered in the database. As we can observe, the output of $checkString is a string of numbers separated by commas.
I’ve read this guide... php da to do here too? I guess not yet right?
– Ricardo
Well, did you see any references to PHP there? and when we ask "execute code" nothing happens... then, no, can not use php... (I will delete the previous comment and this because already fulfilled its function)
– brasofilo