Reply to joining array values

Your name:

Reply:


Posted by Merlin on 05/12/05 14:30

Hi there,

I do have a tricky problem with arrays.

There are 3 arrays:

$result[id][]
$result[text][]
$result[relevance][]

Now there might be the case that there are more results with the same $id. I
would like to count all the relevances together for the same id.

For example:
id text relevance
23 ok 2
42 joel 1
23 php 1

Desired output:
id text relevance
23 ok php 3
42 joel 1

Has anybody an ide how to do that?

Thank you for any help,

Merlin

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация