Hi people!
I'm using
$key = in_array('setna me', $Sname);
echo $key;
To try and echo nr 2 in the array here:
Because I need a script which can give me the position in the array of a specified object, like 'setname'.
But it doesnt work, nothing is echoed. Why is that?
The array is generated from explode(), I hope that doesnt affect it.
Thanks for insight.
I'm using
$key = in_array('setna me', $Sname);
echo $key;
To try and echo nr 2 in the array here:
Because I need a script which can give me the position in the array of a specified object, like 'setname'.
Code:
Array ( [0] => /edit-user [1] => lone [2] => setname [3] => lone2 )
The array is generated from explode(), I hope that doesnt affect it.
Thanks for insight.
Comment