static $myvar = $my_array[3];
I've never needed to use the static function until now. But I need to use it to either store the return value from a function
or an array
:
static $myvar = $my_array[3];
static $myvar = my_func();
Why can't I use it like this? Is static only used for intergers?