I have an array
$ar=[1,[100,200,[1000,2000]],3];
I want to find keys (positions) of arrays. I use function
function search($