fork download
  1. <?php
  2.  
  3. // your code goes here
  4.  
  5. foreach($arr as $subarr){
  6. $currentIndex = key($arr);
  7. $newSubarr = array_push(array_reverse($subarr),$currentIndex);
  8.  
  9. }
Success #stdin #stdout #stderr 0s 82560KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
PHP Notice:  Undefined variable: arr in /home/Wue5yG/prog.php on line 5
PHP Warning:  Invalid argument supplied for foreach() in /home/Wue5yG/prog.php on line 5