- substr: documentation ( source)
- var_dump: documentation ( source)
- array_filter: documentation ( source)
- strrchr: documentation ( source)
<?php
$value = array(
array(3075,15,461.25,16,535.05),
array(3075,15,461.25808,16,535.05),//to be removed
array(3075,15,461.2,16,535.05234)//to be removed
);
$value = array_filter($value,
function ($v) {
foreach ($v as $x) {
if (strlen(substr(strrchr($x, "."), 1)) > 2)
return false;
}
return true;
});
var_dump($value);