Hudzilla.org - the homepage of Paul Hudson PHP and PHP
Contents > Simple variables and operators Wish List | Report Bug | About Me ]

3.14     Exercises

NOTE: This is NOT the latest copy of this book; click here for the latest version.

  1. Which of the following are not valid variables:

    • a) $blah

    • b) $f11

    • c) $_11f

    • d) $11f

    • e) None of the above

  2. What will $foo be set to in this expression: $foo = "wombat" * 2?

  3. What will $bar be set to in this expression: $bar = 5 * 5 + 5?

  4. What does the =< operator do?

  5. How does OR different from || ?

  6. The superglobal array variables are accessible...

    • a) Only outside functions

    • b) Only inside functions

    • c) Anywhere except in classes

    • d) Anywhere, as long as they are defined GLOBAL

    • e) None of the above



<< 3.13 Summary   3.15 Further reading >>
Table of Contents
Top-right shadow
 
Bottom-left shadow Bottom shadow