+
95
-

php如何查找数组种是否包含键值的index位置?

php
php如何查找数组种是否包含键值的index位置?比如数组["sun","dd","ddd"],如何找出dd的index位置?

网友回复

+
15
-

用array_search,代码如下:

<?php
$a=["sun","dd",...

点击查看剩余70%

我知道答案,我要回答