Nettuts+ Quiz #9: The Absolute Basics of PHP

Nettuts+ Quiz #9: The Absolute Basics of PHP

This entry is part 9 of 12 in the The Official Nettuts+ Quizzes Session
« PreviousNext »

In 2012, we plan to take our quizzes to a whole new level with ones aimed at all languages and catering to all competencies and tastes. But what better language to start off the new year than PHP, the darling of the masses?

In this test, aimed at beginners, your knowledge of the absolute basics of PHP will be tested. Yes, we know PHP is a bit old school but it still powers a massive portion of the web and is a force to be reckoned with. And don’t get complacent with the difficulty level of this test either! More difficult ones are on the way — we just like to take it nice and slow. Or maybe we like lulling you into a false sense of security…



Siddharth is Siddharth on Codecanyon
Note: Want to add some source code? Type <pre><code> before it and </code></pre> after it. Find out more
  • Bryan C.

    Wow! I’ve learned a new thing now on PHP, I’ve just scored 94.12%. I’ve missed Question #12, there’s a difference when writing the code using single (‘) and double (“) quotes:

    Its really good sometimes to go back to the basics :) !!!

    • Bryan C.
  • Luchian Isaacs

    Me + 750ml Vodka = 100% Score…

  • seka

    I feel this is a bug in php. It should echo value of $sport, instead of its name.

    • Sebastian Wasser

      Wrong, since this example uses single quotes which indicates that the PHP interpreter echoes everything wrapped by them by word.

  • Waqas

    undefined You scored 94.12%

  • http://phpmysqllearn.blogspot.in/ msgh

    you can learn php and mysql from basic at http://phpmysqllearn.blogspot.in/.

  • http://www.thewwwdesigners.co.cc/ Anirudh

    I scored 88%…
    Siddarth can you help me out what PHP short tags mean?

  • http://www.myvocabtionary.co.cc MrEinStain

    Although I personally don’t use , it IS permitted by PHP, however they do not mention if it’s good or bad (I, for better compatibility, use ).

    PHP also allows for short tags (which are discouraged because they are only available if enabled with short_open_tag php.ini configuration file directive, or if PHP was configured with the –enable-short-tags option.

    http://php.net/manual/en/language.basic-syntax.phptags.php, paragraph 2.

    • http://www.myvocabtionary.co.cc MrEinStain

      Actually, my apologies, I must be so tired I overlooked the “which are discouraged”. I apologise… :|

  • Harry

    Nice!!! 100% !

  • http://adioporanu.com/wordpress aoporanu

    Yes, I’d out-duel Dumbledore apparently. 100%.

  • http://www.iamaaron.com/ Aaron Brewer

    Question number two can be true… Assuming you wrap the PHP code in PHP tags and changed the extension of the document to .php.

  • marketing

    This looks
    absolutely perfect. All these tiny details are made with lot of background
    knowledge. I like it a lot.
    Motor
    insurance

  • Nidhi Maurya

    94.12.!!!!

    i think second one may be true coz we can embeded the php wid html

  • Ino

    For those who have obtained 100%, if two minutes exceeded, the conclusion is that they are at the first level. Those who received below 100% have to study more to build a reasonable PHP software. As for the others, welldone and never stop study.