Tell me how do you execute a PHP script from the command line?

Submitted by: Muhammad
Just use the PHP command line interface (CLI) and specify the file name of the script to be executed as follows:

php script.php
Submitted by: Muhammad

Read Online Junior Developer PHP Job Interview Questions And Answers