Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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; 
    }
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Invalid #argument #supplied #C
ADD COMMENT
Topic
Name
5+8 =