Created
May 26, 2017 21:13
-
-
Save Bebbolus/3ea86562c2c0cc03a216136fb86ce81d to your computer and use it in GitHub Desktop.
non async PHP program example
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 | |
$numbers = [7, 4]; | |
foreach($numbers as $number) | |
{ | |
if (isPrime($number)) | |
{ | |
echo “$number is a prime number!\n”; | |
}else { | |
echo “$number is a not prime number…\n”; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment