Practice plays an important role if you are trying to learn PHP they are various PHP practice online platforms that you can use to be in practice regularly.
Install a local development environment. PHP is a scripting language. To run and execute your PHP script, an interpreter is required that understands and runs the code.
Install a code editor. A code editor is basically an advanced text editor that helps you write your code.
Hope it will help you to do the practice regularly.