Created
May 29, 2020 15:30
-
-
Save ombak/2781329d1cf64737ee3bdb286c712b44 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
//...dengan menggunakan step akan menghasilkan kelipatan 10 | |
//...yang dimulai dari 0 dan diakhiri di nilai 100 | |
//...array(0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100) | |
foreach (range(0, 100, 10) as $number) { | |
echo $number; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment