J'ai deux tableaux de données:tableaux Merging PHP
array(2) {
["12:15"]=>
string(84) "http://form.horseracing.betfair.com/horse-racing/010108/Catterick_Bridge-GB-Cat/1215"
["12:20"]=>
string(77) "http://form.horseracing.betfair.com/horse-racing/010108/Southwell-GB-Sou/1220"
}
et
array(2) {
["12:15"]=>
string(90) "http://www.racingpost.com/horses/result_home.sd?race_id=446323&r_date=2008-01-01&popup=yes"
["12:20"]=>
string(90) "http://www.racingpost.com/horses/result_home.sd?race_id=446250&r_date=2008-01-01&popup=yes"
}
Je veux fusionner ces en fonction du temps, donc je me retrouve avec un tableau de valeurs où les temps dans les deux les tableaux correspondent seulement.
array(2) {
["12:15"]=>
array(2) {
[0]=>
string(84) "http://form.horseracing.betfair.com/horse-racing/010108/Catterick_Bridge-GB-Cat/1215"
[1]=>
string(90) "http://www.racingpost.com/horses/result_home.sd?race_id=446323&r_date=2008-01-01&popup=yes"
}
["12:20"]=>
array(2) {
[0]=>
string(77) "http://form.horseracing.betfair.com/horse-racing/010108/Southwell-GB-Sou/1220"
[1]=>
string(90) "http://www.racingpost.com/horses/result_home.sd?race_id=446250&r_date=2008-01-01&popup=yes"
}
}
Qu'essayez-vous d'accomplir? Peut-être que vous devriez stocker les données dans un tableau chiffré par le temps. – Keyo
@Keyo merci j'ai mis à jour mes tableaux pour être claveté par le temps. –