Php nested loops of multiple arrays of varying lengths, connected strings

Source: Internet
Author: User
Php nested loops of multiple arrays of varying lengths, connecting strings $ arraarray (aaa, bbb, ccc); $ arrbarray (LIKE, NEQUAL, EQUAL ); when the obtained name of this array is the same name: $ arrcarray (val1, val2, val3); if the obtained name of this array is two different names: $ arrc php multiple array nested loops of varying lengths, connecting strings
$ Arra = array ('AAA', 'BBB ', 'CCC ');
$ Arrb = array ('like', 'nequal', 'equal ');

When the obtained name of this array is the same name:
$ Arrc = array ('val1', 'val2', 'val3 ');
If the obtained name of this array is two different names:
$ Arrc = array ('val1', 'val2 ');
$ Arrd = array ('val3 ');

$ Arrl = array ('and', 'OR ');

First, you must obtain the following format:
Aaa LIKE val1 AND bbb NEQUAL val2 OR ccc EQUAL val3

Please kindly enlighten me


------ Solution --------------------
Let's explain it again.
If the obtained name of this array is two different names:
$ Arrc = array ('val1', 'val2 ');
$ Arrd = array ('val3 ');

"This" array gets "two" different names. for example?
Look at the format you want. you don't need these two c and d

------ Solution --------------------
I'm speechless

No matter how many values a text box may have, only one value can be entered.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.