how to write a function to output unconstant loop with PHP
- by tunpishuang
here is the function description
test($argv)
$argv is an array , for example $argv=array($from1,$to1,$from2,$to2.....);
array items must be even.
$argv=array(1,2,4,5) : this will output values like below:
1_4
1_5
2_4
2_5
the number of arrray $argv's is not constant.
maybe 3 or 4 levels of loop will be outputed.
i know this will used…