TechTalkz.com Logo Ask the Expert

Go Back   TechTalkz.com Technology & Computer Troubleshooting Forums > Tech Support Archives > Programing Languages > PHP

Notices

code at first step change something for work with intesection

PHP


Reply
 
Thread Tools Display Modes
Old 05-09-2007, 10:30 AM   #1
artev
Guest
 
Posts: n/a
code at first step change something for work with intesection

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;
  Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Change Style Set does not work consistenly in different documents. Bob Day Microsoft Office 2 02-09-2007 12:31 AM
Please Instruct Me Install SUSE Linux Enterprise 10 Desktop Step By Step davidinvestworld Suse Linux 4 29-08-2007 07:31 PM
Step by step guide to convert AVI/MPEG/DivX/Mov/RMVB video to DVD bluesealover Windows XP 0 16-08-2007 10:56 PM
how to build a table step-by-step ... Roy Programming 1 07-07-2006 08:35 PM
Windows Vista Step-by-Step Guides for IT Professionals bakuryu Windows 98/2000/ME/XP/2003/Vista 0 31-05-2006 09:52 PM


< Home - Windows Help - MS Office Help - Hardware Support >


New To Site? Need Help?

All times are GMT +5.5. The time now is 12:16 AM.


vBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO
Copyright © 2005-2010, TechTalkz.com. All Rights Reserved - Privacy Policy
Valid XHTML 1.0 Transitional