Answers for "Invalid argument supplied for foreach() in C"

0

Invalid argument supplied for foreach() in C

$array = ['dog', 'cat', 'lion'];

if (!empty($array) && isset($array) && is_array($array) {
    //loop
    foreach ($array as $values) {
        echo $values; 
    }
}
Posted by: Guest on July-10-2021

Code answers related to "Invalid argument supplied for foreach() in C"

Browse Popular Code Answers by Language