Re: Array help please
| From: | peter.beal | Date: | Fri, 04 May 2001 13:11:31 +0000 |
| Subject: | Re: Array help please | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-51409@lists.php.net to get a copy of this message | ||
Thanks
Peter
"Jason Stechschulte" <jpstech@unoh.edu> wrote in message
news:20010504080448.D10106@unwosrv3.unoh.edu...
> On Fri, May 04, 2001 at 01:19:57PM +0100, peter.beal wrote:
> > I'm trying to debug some software that I downloaded from the web.
> > It seems to work fine most of the time however it occasionally crashed
with
> > database errors.
> > When I look at the code it has a lot of array references that i don't
> > understand
> > e.g. $Session[clientID]
> > most references at are of the form $arrayname["item"] or
$arrayname[$item]
> > as I would expect.
> > is the example correct code? if so what does it mean?
>
> It either does the same thing as $Sessin["clientID"] The quotes are
> optional but recommended, because clientID could be defined as a
> constant and that could give unexpected results.
>
> --
> Jason Stechschulte
> jpstech@unoh.edu
> --
> : How would you disambiguate these situations?
>
> By shooting the person who did the latter.
> -- Larry Wall in <199710290235.SAA02444@wall.org>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>