PHP 5.4 vs 5.3 app errors

change:

$data = [];

to

$data =array();

As of PHP 5.4 you can also use the short array syntax, which replaces array() with []. So its only with 5.4 and later

Leave a Comment