PHP Interview Questions-5Monday, March 17, 2014
PHP Interview Questions-5
Extracted Page: http://www.gcreddy.net/2013/06/php-interview-questions-5.html
1.What does a special set of tags do in PHP?
The output is displayed directly to the browser.
2.What’s the difference between include and require?
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.
3.I am trying to assign a variable the value of 0123, but it keeps coming up with a different number, what’s the problem?
PHP Interpreter treats numbers beginning with 0 as octal.
Additional text has been truncated due to copyright reasons. Things without URLs and private things don't get truncated.