Back when I was learning PHP, I created a nice collection of resources. I figured, "Why shouldn't anyone benefit from these?" I review each one as I publish it, hoping people will benefit from it. I update any areas that need updating.
These courses will teach you the basics, but if you don't code, you'll forget them. You have to keep creating. Whether it works or not, keep creating. Don't forget to support open source too :)
At the same time php documentation Don't forget to read too.

Lessons;
PHP Lesson 1 – What is PHP?
PHP Lesson 2 – Variables
PHP Lesson 3 – Data Types
PHP Lesson 4 – Operators
Php Lesson 5 – Conditions

Php Lesson 5 – Conditions

/
In programming, conditions are the states we specify that are true…

PHP Lesson 4 – Operators

/
Binary This operator performs greater than and less than operations…

PHP Lesson 3 – Data Types

/
In PHP, as in other languages, there are different types of data…

PHP Lesson 2 – Variables

/
The simplest definition of a variable is to store the data we want…

PHP Lesson 1 – What is PHP?

/
PHP is a server-side programming language. 1995…