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!
I suspect all the quizzes are jokes or proof-of-concept placeholders.
And then there's
> Which of the following will increment a the variable 'x' by one?
* All of the above
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