Home > Backend Development > PHP Tutorial > php怎么循环以下二维数组

php怎么循环以下二维数组

WBOY
Release: 2016-06-02 11:34:29
Original
1358 people have browsed it

二维数组php循环

以前做java的,现在改行做php,菜鸟级别,想问大神一个问题,请大神指导,

我现在从配置文件中读取一个以下形式的二维数组:
array1[0] = “c1”;array1[1]="c2";array1[2]="c3";
array2[0]= "d1";array2[1]=“d2” ;array2[2]=“d3”;array2[3]="d4";array2[4]="d5";
我要判断array1里是否存在值为“aaa”的值的同时,array2中是否存在值为“bbb”的值,应该怎么做

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