Sunday, 25 March 2018

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

casting - Why wasn't Tobey Maguire in The Amazing Spider-Man? - Movies & TV

In the Spider-Man franchise, Tobey Maguire is an outstanding performer as a Spider-Man and also reprised his role in the sequels Spider-Man...