Skip to content

Instantly share code, notes, and snippets.

@Bebbolus
Created May 26, 2017 21:13
Show Gist options
  • Save Bebbolus/3ea86562c2c0cc03a216136fb86ce81d to your computer and use it in GitHub Desktop.
Save Bebbolus/3ea86562c2c0cc03a216136fb86ce81d to your computer and use it in GitHub Desktop.
non async PHP program example
<?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