September 2016
Intermediate to advanced
688 pages
19h 38m
English
This chapter explains how reusing code leads to more consistent, reliable, maintainable code, with less effort. We demonstrate techniques for modularizing and reusing code, beginning with the simple use of require() and include() to use the same code on more than one page. The example given here covers using include files to get a consistent look and feel across your site. We also explain how you can write and call your own functions using page and form generation functions as examples.
Key topics covered in this chapter include
Introducing functions ...
Read now
Unlock full access