Changes

PHP Functions

378 bytes added, 18:54, 11 May 2009
no edit summary
<table border="0" cellspacing="0" width="100%">
<tr>
<td width="20%">[[PHP Flow Control and Looping|Previous]]<td align="center">[[PHP Essentials|Table of Contents]]<td width="20%" align="right">[[PHP Arrays|Next]]</td>
<tr>
<td width="20%">PHP Flow Control and Looping<td align="center"><td width="20%" align="right">PHP Arrays</td>
</table>
<hr>
 
 
<google>BUY_PHP</google>
 
 
 
In the world of programming and scripting there are two ways to write code. One way is to write long, sprawling and monolithic sections of script. Another is to break the scripts up into tidy, self contained modules that can be re-used without having to re-invent the same code over and over again. Obviously the latter is highly preferable to the former, and the fundamental building block of this approach to writing PHP scripts is the ''function''.