php
function filterOptions(array $options, $criteria) {
$filteredOptions = array();
foreach ($options as $option) {
if ($option == $criteria) {
$filteredOptions[] = $option;
}
}
return $filteredOptions;
}
顶一下
(0)
0%
踩一下
(0)
0%
- 相关评论
- 我要评论
-