I have this code, but I'm stuck ...
$my_var = function (){ return array('hello you'); }; var_dump($my_var);
how do i echo $my_var ?
I would suggest that it would be echo $my_var[0] ; but it does not work.
Fatal error: Cannot use object of type Closure as array in ...
source share