Although there is a tendency when first learning PHP to start writing scripts and typing huge sequences of code, we have shown you that PHP is a fully featured and robust language that allows us to plan our programs to share and reuse code. By defining functions, we can make repeated use of small chunks of code. By putting groups of functions and other script inside other files, we can increase the scale of our reuse and sharing to the point where multiple projects make use of the same code.

In the next chapter, we will take this notion of organizing and sharing code to a whole new level by introducing a system that can be used to create whole new data types, complete with attributes and their associated custom implementations. Also, object-oriented programming will let us create entirely new data types and structures that can be used to encapsulate functional areas of our applications.

Core Web Application Development With PHP And MYSQL
Core Web Application Development with PHP and MySQL
ISBN: 0131867164
EAN: 2147483647
Year: 2005
Pages: 255

Similar book on Amazon © 2008-2017.
If you may any questions please contact us: