Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 5. PHP Functions and Objects > Test Your Knowledge: Questions

orm:knowledge-test 5.5. Test Your Knowledge: Questions


Question 5-1

What is the main benefit of using a function?


Question 5-2

How many values can a function return?


Question 5-3

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


Question 5-4

What is the meaning of “scope” in PHP?


Question 5-5

How can you incorporate one PHP file within another?


Question 5-6

How is an object different from a function?


Question 5-7

How do you create a new object in PHP?


Question 5-8

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


Question 5-9

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


Question 5-10

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

See the section Section A.5 in Appendix A for the answers to these questions.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial