SyntaxFix
Write A Post
Hire A Developer
Questions
Try this:
$arr = (array) null; var_dump($arr); // will print // array(0) { }