User has defined an array with $arr[0]=0, $arr[1]=1, $arr[2]=2 and $arr[true]=3 then what is the result of $arr[1] ?

Answer : 3

Key value of ‘true’ will act as 1. So it wil replace the array value from 1 to 3