Re: adding in array

From: Date: Tue, 10 Dec 2002 11:58:50 +0000
Subject: Re: adding in array
References: 1 2  Groups: php.db 
Request: Send a blank email to php-db+get-23996@lists.php.net to get a copy of this message
"Bastian Vogt" <bastian.vogt@komtel.net> wrote in message news:3DF5D1EB.56917222@komtel.net... > Hi, > > I'ld suggest this: > > // inside your loop > $array[$year] += $value; > > HTH, > Bastian > Lets say $year is 2000 There is not defined index 2000 at $array. It is going to be undefined offset.

« previous php.db (#23996) next »