O'Reilly logo

Learning PHP, MySQL, JavaScript, and CSS, 2nd Edition by Robin Nixon

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Test Your Knowledge

  1. What is the main benefit of using a function?

  2. How many values can a function return?

  3. What is the difference between accessing a variable by name and by reference?

  4. What is the meaning of scope in PHP?

  5. How can you incorporate one PHP file within another?

  6. How is an object different from a function?

  7. How do you create a new object in PHP?

  8. What syntax would you use to create a subclass from an existing one?

  9. How can you call an initializing piece of code when an object is created?

  10. Why is it a good idea to explicitly declare properties within a class?

See Chapter 5 Answers in Appendix A for the answers to these questions.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required