RE: adding in arrays

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



IT WORKS!!!

Really GJ...!

But, now i need to make another loop where it takes the key [2000] and put's it into $year and takes the value 300 and put it into $value
Can you help me with it, am really not good at arrays.....

Array ( [2000] => 300 [2002] => 740 [2003] => 200 [2004] => 150 [2005] => 250 ) 

THANKS again

----- Original Message ----- 
From: "Radovan Radic" <rasho@ving.co.yu>
To: <php-db@lists.php.net>
Sent: Tuesday, December 10, 2002 1:19 PM
Subject:  Re: adding in array


> 
> "Bastian Vogt" <bastian.vogt@komtel.net> wrote in message
> 3DF5D85F.9D6BB750@komtel.net">news:3DF5D85F.9D6BB750@komtel.net...
> > > Lets say $year is 2000
> > > There is not defined index 2000 at $array.
> > > It is going to be undefined offset.
> >
> > Hm... I think it's gonna work, but if it's one of the "don'ts" in
> > progamming style, could you tell me why you shouldn't do this and how to
> > make it better (and nice)?
> >
> > Regards,
> > Bastian
> >
> I would write it if i knew it, but i have problems myself about it :(
> Radovan
> 
> 
> 
> -- 
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux