Learn PHP by following the courses offered by become-Developer.com
The courses have an increasing level of difficulty.
If you are new to PHP, we advise you to read them carefully one after the other.
The courses deal with many fundamental themes necessary to the good development of websites such as the management of a database, the sessions, the debugging, etc.
Once you have assimilated all the courses, you should be able to “fly” on your own with PHP.