Re: [PHP] How to start a global variable within a function?

2005-08-08 Thread Jochem Maas
stop posting multiples times. and try the code. you write: "Can I write like this? " what on godes earth stops you from sticking that in a text file and running it? takes just as long as sticking it in an email. YOU ARE REQUIRED TO CODE/TRY STUFF YOURSELF!. Wong HoWang wrote: That is somethi

Re: [PHP] How to start a global variable within a function?

2005-08-08 Thread Miles Thompson
Fer chrissakes - just try it. Twill either work or not. Miles At 06:20 AM 8/8/2005, Wong HoWang wrote: but, I mean I haven't start the global variable BEFORE the function is called... "Jasper Bryant-Greene" <[EMAIL PROTECTED]> wrote:[EMAIL PROTECTED] > $someGlobalVariable = 'foo'; > > functi

Re: [PHP] How to start a global variable within a function?

2005-08-08 Thread M Saleh EG
simply, $GLOBALS['varname']=some_value; M Saleh EG +971-50-4779817 On 8/8/05, Wong HoWang <[EMAIL PROTECTED]> wrote: > > as title, how to do that? > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- M.Saleh.E.G 97150-477981

Re: [PHP] How to start a global variable within a function?

2005-08-08 Thread Wong HoWang
That is something like: Can I write like this? "Jasper Bryant-Greene" <[EMAIL PROTECTED]> wrote:[EMAIL PROTECTED] > $someGlobalVariable = 'foo'; > > function myFunction() { > global $someGlobalVariable; > > // do stuff with $someGlobalVariable > } > ?> > > Jasper > > Wong HoWang wrote: >> as

Re: [PHP] How to start a global variable within a function?

2005-08-08 Thread Wong HoWang
but, I mean I haven't start the global variable BEFORE the function is called... "Jasper Bryant-Greene" <[EMAIL PROTECTED]> wrote:[EMAIL PROTECTED] > $someGlobalVariable = 'foo'; > > function myFunction() { > global $someGlobalVariable; > > // do stuff with $someGlobalVariable > } > ?> > > Jasper

Re: [PHP] How to start a global variable within a function?

2005-08-08 Thread Wong HoWang
but, I mean I haven't start the global variable BEFORE the function is called... "Jasper Bryant-Greene" <[EMAIL PROTECTED]> wrote:[EMAIL PROTECTED] > $someGlobalVariable = 'foo'; > > function myFunction() { > global $someGlobalVariable; > > // do stuff with $someGlobalVariable > } > ?> > > Jaspe

[PHP] How to start a global variable within a function?

2005-08-08 Thread Wong HoWang
as title, how to do that? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] How to start a global variable within a function?

2005-08-08 Thread Wong HoWang
as title, how to do that? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to start a global variable within a function?

2005-08-08 Thread Jasper Bryant-Greene
Jasper Wong HoWang wrote: as title, how to start a global variable within a function? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] How to start a global variable within a function?

2005-08-08 Thread Wong HoWang
as title, how to start a global variable within a function?