- array_map: documentation ( source)
- print_r: documentation ( source)
- array_unique: documentation ( source)
<?php
$input = array(
array(1227, 146, 1, 39),
array(1227, 146, 1, 39),
array(1228, 146, 1, 39),
);
$input = array_map("unserialize", array_unique(array_map("serialize", $input)));
print_r($input);
/* credits: http://stackoverflow.com/a/946300/1438393 */