SyntaxFix
Write A Post
Hire A Developer
Questions
Try this.
if(is_array($value) || is_object($value)){ foreach($value as $item){ //somecode } }