You are here: code at first step change something for work with intesection « PHP Language « IT news, forums, messages
code at first step change something for work with intesection

Posted by artev on 07/04/07 20:39

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;

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация