array_intersect problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
   
  I try to intersect associative array and it seems to fail to do so. Can anyone show me a walk around?
   
  For example I have
   
  array1
   
  Array
(
    [0] => Array
        (
            [imageID] => 1
        )

    [1] => Array
        (
            [imageID] => 2
        )

    [2] => Array
        (
            [imageID] => 3
        )

    [3] => Array
        (
            [imageID] => 4
        )
)
   
  And array 2
   
  Array
(
    [0] => Array
        (
            [imageID] => 6
        )

    [1] => Array
        (
            [imageID] => 3
        )
)
   
  After intersection instead of me getting 3 as a result, I got the array 1 unchanged. Seems like intersection doesn't take place at all. Anyway to solve this problem?
   
  Regards,
   
  Leo
   



Reality starts with Dream 

 __________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux