Specifications

Further Reading
The use of include(), require(), function, and return are also explained in the online man-
ual. To find out more about concepts such as recursion, pass by value/reference, and scope that
affect many languages, you can look at a general computer science text book, such as Dietel
and Dietels C++ How To Program.
Next
Now that you are using include files, require files, and functions to make your code more
maintainable and reusable, the next chapter addresses object-oriented software and the support
offered in PHP. Using objects allows you to achieve goals similar to the concepts presented in
this chapter, but with even greater advantages for complex projects.
Reusing Code and Writing Functions
C
HAPTER 5
5
REUSING CODE
AND
WRITING
FUNCTIONS
145
07 7842 CH05 3/6/01 3:35 PM Page 145