Created
September 26, 2023 06:44
-
-
Save 4RSIM3R/41448d56fcfac83600d24be621fb88c0 to your computer and use it in GitHub Desktop.
[PHP] Count Odd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Complete this function, that count how much odd number in an array | |
// example : | |
// payload : [1, 2, 3, 4, 5, 6, 7] | |
// the result is 4 | |
function countOdd($numbers) { | |
} | |
$result1 = countOdd([1, 2, 3, 4, 5, 6, 7]); | |
echo $result1; // 4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment