diff --git a/odd_numbers.php b/odd_numbers.php new file mode 100644 index 0000000..76dbb79 --- /dev/null +++ b/odd_numbers.php @@ -0,0 +1,21 @@ +$value){ + if(!is_int($value)){ + continue; + } + if ($value % 2 !=0){ + $odd[] = $value; + } + } + sort($odd); + return $odd; +} + +var_dump(odd_numbers($array)); + +?>