Posts by André • 145 points
2 posts
-
4
votes2
answers49
views -
10
votes4
answers5008
viewsQ: Odd or even array in PHP
I need to create a array and tell if the values within it are even or odd. I made the code that way: <?php $par_ou_impar = array(2,3,4,56,5,42,98,100); for ($i = 0; $i < count($par_ou_impar);…