by nidx · 12y ago · 0 comments
1. To run PHP code it needs to be processed by a web server. They say TRUE. The answer is FALSE. - php-cli is used a lot (composer/phpunit/etc...)
2. If you inspect the source of a web page, will you ever see the PHP code? They Say YES. The Answer is FALSE - I mean maybe if you enable phps (php source) in your web server, but in most usage never.
4.In the following code snippet, 'print' is what? <?php print("Hello beautiful world!"); ?> They say it s a variable. That might be true given that a variable can be a closure function, but the real answer is a function!
UGH!
I suspect all the quizzes are jokes or proof-of-concept placeholders.
Hint: any php 'function' that can be called without parens, is a language construct. Some of our favorite impostor 'functions' in php: echo, unset, isset, die, include, require
And then there's
> Which of the following will increment a the variable 'x' by one? * x++ * x+1 * x+=1 * All of the above