Search value in php array and get all keys

后端 未结 3 1836
眼角桃花
眼角桃花 2021-02-12 14:50

Is there any better (= quicker ) solution to get all keys of value in array than foreach loop with if?

$array = array(\'apple\', \'orange\', \'pear\', \'banana\'         


        
3条回答
提交回复
热议问题