Sunday, 19 February 2017

arrays - PHP 5.3.10 vs PHP 5.5.3 syntax error unexpected '['

Is it possible that this PHP code line



if ($this->greatestId()["num_rows"] > 0)


works in PHP 5.5 and returns an error in 5.3??




PHP Parse error:  syntax error, unexpected '[' in /var/www/app/AppDAO.php on line 43


How can I change it to work under PHP 5.3?

No comments:

Post a Comment

c++ - Does curly brackets matter for empty constructor?

Those brackets declare an empty, inline constructor. In that case, with them, the constructor does exist, it merely does nothing more than t...