change a code that work for merge but not for intersect

inner $arraytot I have more subarray that I can merge two a two with cicle:

$result = array();
foreach($arraytot as $value) {
$result = array_merge($result, $value);
}

but if I use array_intersect not work;
this because I think at first iteration it does an intersection between
$result that is a empty array and the 1st subarray, so the result is a void
array and for the next iteration it will have always an intersection with a
void array and the subarray;
artev [ Mi, 04 Juli 2007 22:30 ] [ ID #1759613 ]
PHP » alt.php » change a code that work for merge but not for intersect

Vorheriges Thema: security question: includes outside doc root
Nächstes Thema: mime_content_type() returns empty string for AVI using PHP5