Searching and extracting parts of an array in PHP

Discussion in 'PHP' started by Danny, Mar 4, 2011.

  1. #1
    So I have the following array that I have put together for the NRL live odds. The XML feed that I use for this basically has a catch all.

    All I want to use is the match odds for each game, I want to tie these into my tipping comp. So I will have the two teams that are playing so can probably use an array search

    What I want to do is say search through that array for team x v team a and then pull out the respective odds. It would be fairly simple if it was always going to be at key 14 but it will change

    http://www.silvertails.net/dev/nrl_fixtures_results.php

    My brain is totally fried for tonight, so anyway, does anyone have some code they could help out with?

    Cheers
    Dan
     
    Danny, Mar 4, 2011 IP