Advertisement
Guest User

Untitled

a guest
Apr 24th, 2014
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. $array = ['abc', 'def', 'ghi', 'abc'];
  2.  
  3. if($array[0] == $array[1])
  4. etc
  5.  
  6. <?php
  7. $input = array("a" => "green", "red", "b" => "green", "blue", "red");
  8. $result = array_unique($input);
  9. print_r($result);
  10. ?>
  11.  
  12. Array
  13. (
  14. [a] => green
  15. [0] => red
  16. [1] => blue
  17. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement