I ran into this error where the element of the array, if its index is the string "0", is not available.
This is not an error with unserialize, as it happened in my code without calling it.
$arr = unserialize('a:1:{s:1:"0";i:5;}');
var_dump($arr["0"]);
var_dump($arr[0]);
Am I doing something wrong here? How to access this array element?
John
source
share