Re: php array max value pr. year

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

 



Hi Martin,

I am sure that many would love to help you, but really you must explain your
problem more clearly! Can you give more details?

Ignatius
____________________________________________
----- Original Message -----
From: "Martin Allan Jensen" <bailey@sprit.dk>
To: <php-db@lists.php.net>
Sent: Monday, November 11, 2002 10:24 AM
Subject:  php array max value pr. year


Hi evryone....i have a problem that i hope you can help me with.

Here it goes!

I have two arrays one called "y" adn one called "v"
Togeather they hold a year(Y) and a value(V)

The array looks like this:

v:
10
20
40
60
320
780
890
920

y:
2002
2002
2002
2002
2002
2003
2003
2003

---------

V represents a climping value
Y represents the year of the value
--------------------------------

So  the values 10, 20, 40, 60, 320 etc. grows until a new year is reachet.
And then it schould start again in the new year.
So MAXIMUM ONE VALUE PER YEAR....

How can i make it return this out of the earlier menchent array :

(Arrays)
Y:
2002
2003

V:
320
920

So much thanks people....i tried now for two days and i just can't come up
with anything...

P.S. Sorry for my bad english!

Martin Allan Jensen


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




-- 
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