so the basic fundamentals of php are all the same, and that version of php 7 is just a new set of features added to the php fundamentals is that what your saying? and why they calling it backwards compatible to php 7 with the old versions of php5.3.x and up?
I am saying that you better don’t waste your time with these questions. You will need years to get the difference. So better start learning programming basics already.
yes, i am already started learning the basic core fundamentals of php, just getting head straight about php versions… oh, well… thanks for the advice, i should focus more on learning, i will stop questioning now the versions… thanks.
When you’re looking through any tutorials, if you see any function names starting with “mysql_”, steer well clear of them as they are using the mysql_* extension which was depreciated in 5.6 and removed from 7.0
Any scripts requiring access to a MySQL server should use either the mysqli_* extension (MySQL Improved) or PDO. Whenever you’re using any submitted data or data supplied by another script or array ALWAYS use prepared statements. Even if the data isn’t submitted by the user, still use prepared statements, so that if you change the source of the data to one submitted by the user and you’'ll still be protected from SQL Injection attacks
Also when it comes to hashing of passwords, don’t use md5 as it has been rainbow tabled to death, make use of PHP’s built in functions for dealing with password hashing
One reason is that some host providers might not have moved to php 7 yet. Otherwise, for a beginner, I don’t see any real point in learning a version that will soon be depreciated.
Also, is PHP 7 all that different than PHP 5.6 for a person just starting out to learn PHP? It’s the same language - just with some additions and improvements.
I agree with the others, just learn PHP (period). That is, PHP, the latest.
But I will also say, many cheap hosts are not on PHP 7 yet, which means if you are going to build stuff and stick it on a cheap host, you may want to make yourself aware of some of the primary changes between 5.6 and 7.
It’s not a lot, some of it is just syntax sugar and shortcuts. So go ahead and study PHP, meaning PHP “the latest one”. But then at some point take a step back and read a two or three page document that summarizes the new features of 7 so you know what they are.
thought I would mention here also that there are several big speed a file size advantages with the newer versions of PHP @08ski11s, I think your server should be equipped with something newer than 5.6…
Currently i am setting up a local virtual server using ubuntu xenial or trusty LTS for a dev environment in my computer, i will create separate 2 containers each with different versions of php which is 5.6 and 7 for testing purposes etc., thank you for the advice