Loading ...
Sorry, an error occurred while loading the content.

1576Compare two array and return difference from both array

Expand Messages
  • Shiva Kumar Mallikarjun
    Apr 3, 2010
    • 0 Attachment
      Hi All,

      i've two array, compare two array and return difference from both array keys only..


      $array1 = array("a" => "greenss", "b" => "brown", "c" =>
      "asdfsad","e" => "asdfsad","p" => "asdfsad");
      $array2 = array("a" => "green", "b" => "brown", "c"
      =>"shiva","d" =>"red","e" => "asdfsad");


      it should return

      array("a", "c", "d","p") .... list of different keys according to value.


      Thanks,

      Shiva
      ________________________________


      The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. http://in.yahoo.com/

      [Non-text portions of this message have been removed]
    • Show all 6 messages in this topic