У меня есть этот массив в PHP:
array(
[0] => array( 'username' => 'user1' )
[1] => array( 'username' => 'user2' )
)
Если у меня есть строка 'username', как я могу получить значение индекса в виде числа?
Пример, если у меня есть user1, как я могу получить 0?