How can we install PHP?
Before start using PHP, you need web hosting with MySQL or any other supported database server.
You can take paid hosting service or also install PHP on your machine.
The official site of PHP download and installation is https://www.php.net/
You can use a local server with PHP support listed here :
PHP Installation on different platforms :