Ask a Question
Advertise on boostr.in
indirect modification of overloaded element of splfixedarray has no effect using -'php,arrays,spl'
indirect modification of overloaded element of splfixedarray has no effect ¬†using -'php,arrays,spl'
Why the following
$a = new SplFixedArray(5);
$a = array(1, 2, 3);
$a = 12345; // here
Notice: Indirect modification of overloaded element of SplFixedArray has no effect in <file> on line <indicated>
Is it a bug? How do you deal with multidimensional SplFixedArrays then? Any workarounds?
Sep 7, 2015
to add a comment.
Your name to display (optional):
Email me at this address if my answer is selected or commented on:
Email me if my answer is selected or commented on
Privacy: Your email address will only be used for sending these notifications.
To avoid this verification in future, please