Finding position of data in the array - PHP
I have a PHP array, say, 

    $array = Array("Name1","Name2","Name3","Name4","Name5");

I want to find the position of these names in the array.

I want to return 0 for `Name1` and 2 for `Name3`.

How can I do this?
Finding position of data in the array - PHP
===

I have a PHP array, say, 

    $array = Array("Name1","Name2","Name3","Name4","Name5");

I want to find the position of these names in the array.

I want to return 0 for `Name1` and 2 for `Name3`.

How can I do this?