Facebook – Delete More Than One Friend


Install GreaseMonkey (Firefox) from here:
https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/

or TamperMonkey (Chrome) from here:
https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo

then install FacebookDeletes from here:
http://userscripts.org/scripts/show/43404

Advertisements

PHP – Remove Duplicate Values From Multi-dimension Array


<?php
function super_unique($array)
{
  $result = array_map("unserialize", array_unique(array_map("serialize", $array)));

  foreach ($result as $key => $value)
  {
    if ( is_array($value) )
    {
      $result[$key] = super_unique($value);
    }
  }

  return $result;
}
?>


source:
http://stackoverflow.com/questions/3598298/php-remove-duplicate-values-from-multidimensional-array