RE: [PHP] help with PHP global array

2002-02-07 Thread Wee Chua
Hi all, I have tried: global $myArray[] and it gives me an error 'the array expects semi-colon or comma'. Any helps would be appreciated! Thanks, Wee -Original Message- From: Bjorn Abt [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 07, 2002 10:57 AM To: '[EMAIL PROTECTED]'

Re: [PHP] help with PHP global array

2002-02-07 Thread Jason Wong
On Thursday 07 February 2002 23:48, Wee Chua wrote: Hi all, I have tried: global $myArray[] and it gives me an error 'the array expects semi-colon or comma'. Any helps would be appreciated! Thanks, Wee -Original Message- From: Bjorn Abt [mailto:[EMAIL PROTECTED]] Sent:

Re: [PHP] help with PHP global array

2002-02-07 Thread Chris Boget
All variables in PHP are local to the scope in which it is defined. You cannot declare a variable as global (as such). To use a global variable: This is true. But I believe that the original question was actually the other way around... Make a local variable into a global one. The way to do