fork download
  1. <?php
  2.  
  3. $n['minutes'] = a;
  4. $n['dollars'] = b;
  5. $n['units'] = c;
  6.  
  7. $p['minutes'] = x;
  8. $p['dollars'] = y;
  9. $p['units'] = z;
  10.  
  11. $foo = current($n);
  12. $bar = current($p);
  13.  
  14. echo $foo, $bar, PHP_EOL, PHP_EOL;
  15.  
  16. while(FALSE !== $foo and FALSE !== $bar){
  17. $foo = next($n);
  18. $bar = next($p);
  19.  
  20. echo $foo, $bar, PHP_EOL, PHP_EOL;
  21. }
Success #stdin #stdout 0.02s 13112KB
stdin
Standard input is empty
stdout
ax

by

cz