<?php class x { static function foo() { echo __METHOD__.PHP_EOL;} } ['x', 'foo'](); [0 => 'x', 1 => 'foo'](); //Array callback has to contain indices 0 and 1 //[10 => 'x', 11 => 'foo'](); //Array callback must have exactly two elements //[10 => 'x', 11 => 'foo', 0 =>0, 1=>1](); // OK! [1 => 'foo', 0 => 'x']();
You have javascript disabled. You will not be able to edit any code.