Answer the question
In order to leave comments, you need to log in
Learn PHP 5 or 7?
I'm going to learn PHP, I don't know which version to choose. There is PHP 7, but many people say that about the main PHP 5 is more popular.
Are the versions very different? Is PHP 7 just an addition to PHP 5 (like ES-5, ES-6), or is there a huge difference?
In principle, I also first wrote in JS on prototypes, and when classes appeared in ES6, I quickly figured it out.
I tend to learn PHP 5 and then quickly pick up the new goodies from PHP 7. What do you suggest?
Answer the question
In order to leave comments, you need to log in
but many people say that about the main PHP 5 is more popularPHP 5 has been officially dead for a long time, only some junk can be supported by people who are not hired in normal places.
Until a real task appears - generally useless throwing.
Read about this and that, then try to code something.
However, you will really master one or another version when you work on a real server application / site.
There is no "colossal difference" in the language itself.
PHP 5 and PHP 7 are not two different languages. This is the same language, the seven is just faster and a lot of things have been cut out of it, which remained from the 4th version, and in 5 were considered obsolete and were not encouraged to use.
Therefore, the question itself - what to teach, 5 or 7 - does not make sense . The language is the same.
But there is a significant difference in approaches and ecosystem.
Any textbook designed for 5 is guaranteed to tell nothing about the composer, PSR standards, modern templating engines, frameworks, debugging methods, and many other important things that modern PHP is unthinkable without. And in this sense, one must, of course, look for more recent materials, and not those that were written 5-10-20 years ago.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question