+ 1

I want to echo $a if its modulus is zero but not displaying. Please what could be wrong?

<?php for ($a=1; $a<500; $a++){ ifelse ( $a%2=0) { echo $a."<br/>"; }elseif{ echo "There is a remainder"; } } ?>

22nd Feb 2020, 5:35 PM
Juliet Chinenye
Juliet Chinenye - avatar
1 Antwort
+ 1
Thank you Mirielle. Correction done. Working now.
22nd Feb 2020, 5:52 PM
Juliet Chinenye
Juliet Chinenye - avatar