"[EMAIL PROTECTED]" wrote:
> 
> I've got two functions that return data in an array. I need to compare the
> individual elements of one array against the elements of another, and do
> something within an if-else statement.
> 
> ...
> 

If i didn't misunderstood Your question, then this double-loop should 
do the thing:
<?
$arr1=array('a'=>'aa','b'=>'bb');
$arr2=array('c'=>'cc','d'=>'cc');

for(reset($arr1);$i=key($arr1);next($arr1)){
 for(reset($arr2);$j=key($arr2);next($arr2)){
  /* 
  * compare here $arr1[$i] with $arr2[$j] and do something
  */
  ...
 }
}
?>


-- 
Pavel a.k.a. Papi

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to