I want to call a method inside an array (in a class) in PHP :
const emtpy= "Please correct %s";
...
$myArray= array(
'1'=>'myvalue',
'2'=> printf(self::emtpy,'user')
);
However, Eclipse returns an error for the first bracket of the called method.
syntax error, unexpected '(', expecting ')
Has someone any ideas ? Thank you !