View Single Post
  #6 (permalink)  
Old 12-03-08, 03:18 PM
wirehopper's Avatar
wirehopper wirehopper is offline
-
 
Join Date: Feb 2006
Posts: 2,516
Thanks: 20
Thanked 109 Times in 106 Posts
Quote:
The items in all caps are defined variables that get used throghuout the system. Ive could get this working by passing the variables as parameters but on a large scale this completely defeats the purpose of making a modular system and really prohibits future changes.]
Using parameters won't prohibit future changes and it may make your code more secure, more robust, and easier to maintain.

You can always extend a parameter list with default parameters, like so:

PHP Code:

function phpFunction ($parm1='default',$parm2='',$parm3=0)

{} 
Reply With Quote