PHP Interview Questions and Answers
Prepare for your Interview today!
The output is displayed directly to the browser.
It's how they handle failures. If the file is not found by require(), it will cause a fatal error and halt the execution of the script. If the file is not found by include(), a warning will be issued, but execution will continue.
PHP Interpreter treats numbers beginning with 0 as octal.
In this example it wouldn't matter, since the variable is all by itself, but if you were to print something like "{$a},000,000 mln dollars", then you definitely need to use the braces.
Via define() directive, like define ("MYCONSTANT", 100);
Most helpful rated by users: