How to find index of a certain value in an array in PHP

前端 未结 0 1684
猫巷女王i
猫巷女王i 2021-02-19 22:32

I have an array:

$anees = array(\'Peshawar\', \'Swat\', \'Lahore\');

I want to get the index for a given value (i.e. 0 for Peshawar and 1 Swat an

相关标签:
回答
  • 消灭零回复
提交回复
热议问题