Array cannot get value by key from unserialize. It show error Undefined offset, but the array has the index call "1134". How can I get the index 1134 value?
$original = unserialize('O:8:"stdClass":1:{s:4:"1134";i:1;}');
$result = (array)$original;
print_r ($result); //Array ( [1134] => 1 )
print_r($result["1134"]); //Undefined offset: 1134
print_r($result['1134']); //Undefined offset: 1134
print_r($result[1134]); //Undefined offset: 1134
1. (in version 7.2)