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

WBOY
Release: 2016-06-13 11:33:19
Original
1256 people have browsed it

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


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

大神们能给个例子吗?

编程 PHP
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template