Although $offset can be anything, a string that looks like an integer is cast to integer before the call to any of the methods.
$x[1] offset is integer 1
$x['1'] offset is integer 1
$x['1.'] offset is string '1.'
Although $offset can be anything, a string that looks like an integer is cast to integer before the call to any of the methods.
$x[1] offset is integer 1
$x['1'] offset is integer 1
$x['1.'] offset is string '1.'