syntax error in example script - parent-child editing
syntax error in example script - parent-child editing
The example script for the server-side (PHP) script - user.php includes a code line echo json_encode( [ "data" => [] ] ); which is reflected as a syntax error when I replicate this line in a program. I'm at a loss as to how to correct the syntax error. This was an example script posted on the Editor site on Friday, 25 March 2016. Thanks
This discussion has been closed.
Answers
Sounds like you are using PHP 5.3 or older. The short syntax for arrays was introduced in 5.4. The old style of doing it would be:
Support for PHP (by the PHP team) was discontinued in 2014. It would be worth updating if you are using a legacy version.
Allan