Possible Duplicate:
Remove integers in array less than X with PHP
$array = array(
"a" => 10,
"b" => 9,
"c" => 8,
"d" => 7,
"e" => 6,
"f" => 5,
"g" => 4,
"h" => 3
);
How can I dele the item if the value is smaller than 6? i.e., how can I get the following array?
$array = array(
"a" => 10,
"b" => 9,
"c" => 8,
"d" => 7,
"e" => 6
);
array_filteris perfect for this: