fork download
  1. <?php
  2. class World {
  3.  
  4. ...
  5.  
  6.  
  7. public function move($from, $to) {
  8. ...
  9.  
  10. //$this->map = array_fill(0, $x, array_fill(0, $y, ''));
  11. $this->map[$to['x']][$to['y']] = $this->map[$from['x']][$from['y']];
  12. $this->map[$from['x']][$from['y']] = '';
  13. }
  14.  
  15. ...
  16. }
Runtime error #stdin #stdout #stderr 0.02s 52432KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
PHP Parse error:  syntax error, unexpected '...' (T_ELLIPSIS), expecting function (T_FUNCTION) in /home/OAANvd/prog.php on line 4