4 ms·
PHP 7 is the next upgrade from PHP 5? I am very new to PHP and learning from a book which is PHP 5.
by rampage101 10y ago
PHP 7 is the next upgrade from PHP 5? I am very new to PHP and learning from a book which is PHP 5.
- philo23 10y agoYes, but more or less everything you know about PHP 5 is still true and will work just fine in PHP 7. https://wiki.php.net/rfc/php6#historical_context https://wiki.php.net/rfc/php6#historical_context http://php.net/manual/en/migration70.incompatible.php http://php.net/manual/en/migration70.incompatible.php
- oneweekwonder 10y agoTry `print false;` and see if you get the result you expect[0]. Because it differs compared to node, perl, python(Yes Yes first char uppercase) and other languages I can not think of. Also good luck with the param ordering of `array_map` compared to `array_filter` and `array_reduce`. Actually get use to the word array. Because in 2009 the PHP developers did not think array is a important data type that needs a short hand array() vs [], and all their function names `array_` shows this ugliness. I would advice rather spend your time learning python or javascript. But I acknowledge PHP became a de facto standard with MediaWiki, WordPress, Facebook, dragging the broken language into the 21st century. [0]: http://pastebin.com/raw/P6BTmceL http://pastebin.com/raw/P6BTmceL
- oneweekwonder 10y agoFor the down voters please see [Petty Issues I have with PHP!](petty); and please reply. I would really like to talk about this constructively. [petty]: https://gist.github.com/Morabaraba/3e93d7d21e16b6eb8266ee1ccbdf77f8 https://gist.github.com/Morabaraba/3e93d7d21e16b6eb8266ee1cc... ps. can you not edit your comment anymore... could you ever edit your comment?
- grzm 10y agoOnce the comment gets to a certain age (an hour?), it's no longer editable.