more php nesting intended?

joe.attaboy

New member
I doubt this would work no matter what, because you can't reference an indexed value of an array that hasn't been determined. You're asking to index a static method to which you're passing a paramater. As the poster above me stated, you have to have a reference or variable that holds the value of that method. You can't index something that hasn't been determined yet.
 
sf: a static function that returns an array
cref : a class reference

in php i can

$v=cref::sf(param);
echo $v[0];
but i want to include an index
echo cref::sf(param)[0]//doesnt work
 
Back
Top