Home >Backend Development >PHP Tutorial > 获取数组下标,该怎么解决

获取数组下标,该怎么解决

WBOY
WBOYOriginal
2016-06-13 12:39:161823browse

获取数组下标
最近想学习一下PHP编程开发,无意中在网上看到了一道题


$array[‘color’]?=?‘red’;获取数组$array第一个元素的下标

大神们能给个例子吗?

编程 PHP
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn