waahh!!..its harddd!!!..it is ok if my arrays are not that complicated..it seems that i have multidimensional associative array combine with index array...ahahhahaaa..that's why it is hard for me to find any example..all the example always give me problemss..
after studying the functions u told me to study...
i come out with new array stucture..
$y_res[$i] = array( $y_URL[$i] => array ($y_arr[$i], 'Yahoo'));
$a_res[$i] = array( $a_URL[$i] => array ($a_array[$i], 'Altavista'));
i believe i have index array '$y_res[1]..[10]' if i'm not mistaken..and associative array 'array( $y_URL[$i] => array ($y_arr[$i], 'Yahoo'));' and multidimensional array.. 'array ($y_arr[$i], 'Yahoo'));'..
normally for the associative we have.. this kind
<?php
$ar1 = array("color" => array("favorite" => "red"), 5);
$ar2 = array(10, "color" => array("favorite" => "green", "blue"));
$result = array_merge_recursive($ar1, $ar2);
?>
but unfortunately i have this kind..
$y_res[$i] = array( $y_URL[$i] => array ($y_arr[$i], 'Yahoo'));
e.g: $y_res[1] <-- result 1
$y_res[2] <--- result 2
each have own..url( $y_URL[$i] ) and desc ($y_arr[$i])...
I'M SOOO IN DILEMMMAAAA!!
uuwaa~~
its hard to filter for same URL..for both arrays...