[PHP] Syntax generating error?
- Date: Sat, 1 Apr 2017 14:45:21 -0700
- From: Jeffry Killen <jekillen@xxxxxxxxxxx>
- Subject: [PHP] Syntax generating error?
The following error is generated by the line marked "// << error indicated"
Fatal error: Function name must be a string in dev_lab_current/lab_20/php/arrayRecursorREV-2.php on line 556
self::$_localParams = array
print self::$_localParams['addPath']().'<br>';// << error indicated (line 556)
This is in an early development stage and the print statement is to test the concept and
the function that is supposed to be called. If the function wasn't properly defined or referenced,
it would generate a not defined error.
As it is the self::showPath() call had to be nested in an anonymous function. I presume that is what
the problem is
But the array property is a string, so why would that not serve the purpose?
Thanks for time and attention
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php