A slightly fuller example for this stackoverflow question: PHP equivalent of Python's name == “main”?
If you run php import.php
the expected output is:
$ php import.php
I am import.php
I am import.php, and I was run from the command line.
If you run php run.php
the expected output is:
$ php run.php
I am run.php
I am import.php
I am run.php, and I was run from the command line.