remove duplicate - Posted on September Mon 7th 3:00 AM (Never Expires) - Format: text
  1. function checkEq($a, $b) {
  2.     //bla bla bla
  3.     return $a === $b;
  4. }
  5.  
  6. for($i=0; $i<count($arr); $i++) {
  7.     for ($j=$i+1; $j<count($arr); $j++) {
  8.         if (checkEq($arr[$i], $arr[$j])) {
  9.             array_splice($arr, $i, 1);
  10.             $j--;
  11.             break;
  12.         }
  13.     }
  14. }

New Paste

Paste Options

Recent Pastes

12 days ago

stripe

12 days ago

Untitled

13 days ago

run stripe liste

15 days ago

Untitled

16 days ago

remove duplicate

19 days ago

Untitled

21 days ago

Untitled

21 days ago

Untitled

22 days ago

Untitled

22 days ago

try this one