Re: [PHP] global vars within 2-level functions

2002-04-02 Thread Miguel Cruz
On Tue, 2 Apr 2002, Erik Price wrote: > On Tuesday, April 2, 2002, at 01:24 PM, Jason Wong wrote: >>> (b) Pass a variable as an argument to a function but make that argument >>> optional so that it does not have to exist to make the function >>> legitimate. >> >> function function2 ($variable_A="

Re: [PHP] global vars within 2-level functions

2002-04-02 Thread Erik Price
On Tuesday, April 2, 2002, at 01:24 PM, Jason Wong wrote: >> (b) Pass a variable as an argument to a function but make that argument >> optional so that it does not have to exist to make the function >> legitimate. > > function function2 ($variable_A="") { > } Thanks for the pointer. I didn't

Re: [PHP] global vars within 2-level functions

2002-04-02 Thread Jason Wong
On Wednesday 03 April 2002 02:11, Erik Price wrote: > (b) Pass a variable as an argument to a function but make that argument > optional so that it does not have to exist to make the function > legitimate. function function2 ($variable_A="") { } It's in manual under "Functions" -- original isn'

[PHP] global vars within 2-level functions

2002-04-02 Thread Erik Price
I have some code, in which I am using the function keyword to create subroutines of code (in otherwords, not true functions but rather reuseable chunks of other code). Yeah, it's ugly, but I need to do it this way for now. So my question is this: One of my subroutine/functions generates a va