Skip to content

Instantly share code, notes, and snippets.

@yvan-sraka
Created October 21, 2016 10:01
Show Gist options
  • Save yvan-sraka/266e07c1137df35786a5463be28c8353 to your computer and use it in GitHub Desktop.
Save yvan-sraka/266e07c1137df35786a5463be28c8353 to your computer and use it in GitHub Desktop.
<?php
$apprenants = ["adora", "mohamad", "berivan", "amare", "zaidi", "suliman", "antoine", "chadi"];
shuffle($apprenants);
for ($i = 0; $i < count($apprenants); $i = $i + 3) {
echo $apprenants[$i]." ".$apprenants[$i+1]." ".$apprenants[$i+2].'<br />';
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment