Foundation • Bundle 2
Questions: PHP First Program
.php is the extension of a PHP file.
No. If we have a file called program.txt that contains PHP code and then try executing it, the PHP engine won't complain at all.
They denote PHP code in a PHP file.
The echo
keyword is a means of outputting text to the standard output stream in PHP.
A string is a sequence of characters that denotes literal text in a program.
Using a pair of single quotes (''
).
php.exe is an executable program that is meant to parse and execute PHP code. Sometimes it's also referred to as the PHP interpreter, or the PHP engine.