Re: [PHP] Problem with functions and arrays...

2010-11-22 Thread Jason Pruim
On Nov 21, 2010, at 4:57 PM, Tamara Temple wrote: On Nov 20, 2010, at 5:31 PM, Jason Pruim wrote: Maybe it's just me, but using the name of a global as a function parameter just seems like a bad idea. Yes, you can do it. Should you? I think not. Especially, as, you are passing it a sca

Re: [PHP] Problem with functions and arrays...

2010-11-22 Thread Richard Quadling
On 20 November 2010 23:31, Jason Pruim wrote: > Hey Everyone! > > So I came across a problem that I don't know how to fix... I have searched > and thought and just not having anything click as to where I am messing > up... > > I have a few functions as follows: > > function ddbYear($name, $messag

Re: [PHP] Problem with functions and arrays...

2010-11-21 Thread Tamara Temple
On Nov 20, 2010, at 5:31 PM, Jason Pruim wrote: Maybe it's just me, but using the name of a global as a function parameter just seems like a bad idea. Yes, you can do it. Should you? I think not. Especially, as, you are passing it a scalar below and treating it here like the global arra

[PHP] Problem with functions and arrays...

2010-11-20 Thread Jason Pruim
Hey Everyone! So I came across a problem that I don't know how to fix... I have searched and thought and just not having anything click as to where I am messing up... I have a few functions as follows: "; echo "MESSAGE: " . $message . ""; echo "POST: " . $_POST . ""; echo "OPTION: " . $opt