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.