5 ms·
The PHP Virgin QUIZ is full of wrong answers! 1. To run PHP code it needs to be processed by a web server. They say TRUE. The answer is FALSE. - php-cli is use
by nidx 12y ago
The PHP Virgin QUIZ is full of wrong answers!
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!
- Altreus 12y agoFalse. print is a language construct http://uk1.php.net/manual/en/function.print.php http://uk1.php.net/manual/en/function.print.php
- jcmurrayii 12y ago+1 - oddly enough, my first thought in reading someone's report on the 'incorrectness' of their answers, and yet, adding to the misinformation. 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
- amoliski_ 12y agoSo... almost every quiz is bugged and says correct answers are wrong. 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
- glenra 12y agoThe CSS Virgin Quiz includes a question about Justin Timberlake and this True/False assertion: "The Big Lebowski is the perfect movie." I suspect all the quizzes are jokes or proof-of-concept placeholders.