Thank you very much!
"David Nicholson" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Hello,
This is a reply to an e-mail that you wrote on Sat, 26 Jul 2003 at
00:50, lines prefixed by '>' were originally written by you.
> Ouch!
> Sometimes I wish global didn't exist
Yes, it can be
Hello,
This is a reply to an e-mail that you wrote on Sat, 26 Jul 2003 at
00:50, lines prefixed by '>' were originally written by you.
> Ouch!
> Sometimes I wish global didn't exist
Yes, it can be better to pass in a variable (by reference if you need
to write to it from within a function and not
* Thus wrote Comex ([EMAIL PROTECTED]):
> <[EMAIL PROTECTED]>
> Jack Lee:
> > //I have an array a[] like this:
> >
> > > $a[]=0;
> >
> > //How to define and use it in a function like this?
> >
> > function myfunc(something)
> > {
> > echo $a[0]; //got error here Notice: Undefined vari
It works! Thanks guys!
"David Nicholson" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Hello,
This is a reply to an e-mail that you wrote on Fri, 25 Jul 2003 at
23:51, lines prefixed by '>' were originally written by you.
> <[EMAIL PROTECTED]>
> Jack Lee:
> > //I have an array a[]
Hello,
This is a reply to an e-mail that you wrote on Fri, 25 Jul 2003 at
23:51, lines prefixed by '>' were originally written by you.
> <[EMAIL PROTECTED]>
> Jack Lee:
> > //I have an array a[] like this:
> > > $a[]=0;
> > //How to define and use it in a function like this?
> > function myf
<[EMAIL PROTECTED]>
Jack Lee:
> //I have an array a[] like this:
>
> $a[]=0;
>
> //How to define and use it in a function like this?
>
> function myfunc(something)
> {
> echo $a[0]; //got error here Notice: Undefined variable:
>
> }
>
>>
> //Thanks for any help.!!!
global $a;
--
6 matches
Mail list logo