how to fetch out the index/key from an array using its value in PHP?
Posted
by OM The Eternity
on Stack Overflow
See other posts from Stack Overflow
or by OM The Eternity
Published on 2010-06-17T10:21:07Z
Indexed on
2010/06/17
10:23 UTC
Read the original article
Hit count: 161
how to fetch out the index/key from an array using its value in PHP?
If i have an array say :
array{
0 => 'Me',
1 => 'You',
2 => 'We'
}
then here how to find that value "You" has key "1"? Using any php logic.
© Stack Overflow or respective owner