SyntaxFix
Write A Post
Hire A Developer
Questions
I'll use a combination of empty, isset and is_array as
empty
isset
is_array
$array = ['dog', 'cat', 'lion']; if (!empty($array) && isset($array) && is_array($array) { //loop foreach ($array as $values) { echo $values; } }