Thanks!  I looked it up on the php.net and I wasn't sure if I understood it,
so I post it here instead.  Thanks for hte response.

Scott F.
"Gareth Hastings" <[EMAIL PROTECTED]> wrote in message
000201c2b2ab$3bb8be30$[EMAIL PROTECTED]">news:000201c2b2ab$3bb8be30$[EMAIL PROTECTED]...
> Bah, I meant
>
> $a[] = "0";
> $a[] = "1";
> $b = $a;
>
> echo $b[0];
>
> > -----Original Message-----
> > From: Gareth Hastings [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, January 02, 2003 5:05 PM
> > To: 'Scott Fletcher'; [EMAIL PROTECTED]
> > Cc: [EMAIL PROTECTED]
> > Subject: RE: [PHP] Can it be doen with Array????
> >
> > Yes you can simply assign arrays like
> >
> > $a = "0";
> > $a = "1";
> > $b   = $a;
> >
> > echo $b[0];
> >
> > would print
> >
> > 0
> >
> >
> > > -----Original Message-----
> > > From: Scott Fletcher [mailto:[EMAIL PROTECTED]]
> > > Sent: Thursday, January 02, 2003 5:08 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: [PHP] Can it be doen with Array????
> > >
> > > Hi!
> > >
> > >     I know that it can be done with certain variables that can
> > overwrite
> > > another variable.  Like ....
> > >
> > >         $test = "123";
> > >         $other = "xyz";
> > >
> > >         $test = $other;
> > >
> > >     What about the Array?  Can this be done?
> > >
> > >         $array_test[1] = "abc";
> > >         $array_test[2] = "jkl";
> > >         $array_test[3] = "$%(";
> > >
> > >         $other_test = $array_test;
> > >
> > >         echo $other_test[1];
> > >
> > >     Would the result be "abc"????   Does it work that way?  I need
> > > something
> > > that would work with one array to a different array.
> > >
> > > Thanks....
> > >
> > >
> > >
> > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to