tweetattacks review
New Member
Let's say I have a function like this:\[code\]function z($zzz){ for($c=0;$c<5;$c++){ $zzz[$c]= 10; //more and more codes } }\[/code\]I want to write a \[code\]loop\[/code\] so thatthe 1st time the function is executed, argument \[code\]$array\[/code\] is passedthe 2nd time : argument \[code\]$array[0]\[/code\] is passed while the 3rd time : argument \[code\]$array[1]\[/code\] is passed.....and the 12th time : argument \[code\]$array[0][0]\[/code\] is passedThis is what comes to my mind:\[code\]$a = -1;$b = -1;$array = array();while($a<10){ while($b<10){ z($array); $b++; $array= &$array[$b]; } $a++; $array= &$array[$a]; }\[/code\]I've tried it but it didn't work.. I would appreciate if someone can provide a solution..