Ok, hard to explain here, and I mix up Python (where there is some really nice things you can do with lists).

I do n quereries, and from every query I get m words. I want to count how many times each word occours.

- I don't know what words will occour up front
- I don't know how many they are


So how would you go about something like this in PHP. Think about it as a double loop:

Code:
//Outer loop, every query
for ($j = 0; $j < count($queries); $j++){
    //Getting one and one tag
    for ($i = 0; $i < count($tag_array); $i++){
        //Here we need to add them to an array, so we both know what word it is, and how many times it occoured.
        //$tag_array[$i] is now holding one word.
    }
}

Hope that was understandable...


- ØØ -