How to run PHP from command line ?
Take the full course from here:
http://php.link/bootcamp
How to run php script from command line.
console.log("Message here");
This video will show how to run execute php using command line.
Running php program on command prompt using aamp
When you are running a PHP file from command line, there may be times when you need to make changes to the PHP settings. In this guide we will show you how to specify the php.ini file, and change a PHP setting in command line. If you are not working in command line, you can change your PHP settings in cPanel.