php 多个长度不等的数组嵌套循环,联接字符串

WBOY
Release: 2016-06-13 13:20:14
Original
943 people have browsed it

php 多个长度不等的数组嵌套循环,连接字符串
$arra = array('aaa','bbb','ccc');
$arrb = array('LIKE','NEQUAL','EQUAL');

该数组当取得的名称是同一个name:
$arrc = array('val1','val2','val3');
该数组若是取得的名称是两个不同的name:
$arrc = array('val1','val2');
$arrd = array('val3');

$arrl = array('AND','OR');

先要得到如下格式:
aaa LIKE val1 AND bbb NEQUAL val2 OR ccc EQUAL val3

请大神赐教


------解决方案--------------------
把这个再解释一下
该数组若是取得的名称是两个不同的name:
$arrc = array('val1','val2');
$arrd = array('val3');

"该"数组取得"两个"不同的name,举个例子?
看你想要的格式,完全不用这两个c和d

------解决方案--------------------
我无语了

无论一个文本框可能有多少个值,实际被填写的只能是一个值

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!