List.Where(x => x.value == value).ToList();
那在PHP中也有類似的
value = 5;
$Result = array_filter (
$Object, function($x) use (value) {
if(($x['value']) == value)
return $x;
}
);
$Result = array_filter (
$Object, function($x) use (value) {
if(($x['value']) == value)
return $x;
}
);
回傳是一組Object