Get $500+ of the best After Effects files, video templates and music for only $20!
Nettuts+ Quiz #9: The Absolute Basics of PHP

Nettuts+ Quiz #9: The Absolute Basics of PHP

This entry is part 9 of 11 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
Add Comment

Discussion 121 Comments

Comment Page 3 of 3 1 2 3
  1. Bryan C. says:

    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 :) !!!

  2. Luchian Isaacs says:

    Me + 750ml Vodka = 100% Score…

  3. seka says:

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

    • Sebastian Wasser says:

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

  4. Waqas says:

    undefined You scored 94.12%

  5. msgh says:

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

  6. Anirudh says:

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

  7. MrEinStain says:

    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.

Comment Page 3 of 3 1 2 3

Add a Comment

To add a code snippet to your comment, please wrap your code like so: <pre name="code" class="html">YOUR CODE</pre>. You can replace the class name with "js," "css," "sql," or "php." If there are any "<" or ">" within your code, please search and replace them with: &lt; and &gt; respectively.