What's new in PHP 7.4 - in 5 minutes

preview_player
Показать описание
In this video I will summarize top 5 changes in PHP 7.4.

Spread Operator
Arrow Functions
Typed Properties
Null Coalescing Assignment Operator
Exceptions allowed in __toString method

Check my Github:

Follow me on social media:
Рекомендации по теме
Комментарии
Автор

Hi, thanks for the video. Can you also make videos showing what's new in PHP versions 7.0, 7.1, 7.2, 7.3?

anpcpro
Автор

0:56 Oh, you'll still need `array_merge` as the spread operator only works for straight int-keyed arrays

peyator
Автор

Hello dear! Thank you very much for the information, do you have any idea if what allowed us in php 7.3 is still valid in 7.4 or will it just stop working? I consult you because I have an application made with Yii2 in its latest version, but with third-party plugins, and a centos server with php 7.4, I have not yet put it into production, but from what I see I have my doubts that third-party applications are programmed under the new practices of php 7.4 and I fear this will break the execution of my application. What do you recommend me? Should I do a php downgrade on the server or can I rest assured that it will work anyway?


I send you my greetings!

NicoILeone
Автор

I think most php updates are necessary. They just inventing the same wheel. Some updates maybe useful, but not very popular in usage and that can make a lot of confusion. If they do updates they should do new things but do not rewrite old school syntax, because to figure out mistakes takes valuable time. I dont see the logic why need to learn how to use the same function in new fashion way.
Maybe sounds like complains, but I just sharing opinion as beginner.

rimantasdanilevicius
Автор

what's the point of telling "..but this works fine in php 7.4" when it's a php 7.4+ feature .. after _EACH_ new language-feature in a video called "new in php 7.4" ?

vovegde
visit shbcf.ru