fork(6) download
  1. <?php
  2. $input = array("Name1","Name2", "Name3","Name4");
  3.  
  4. ?>
  5. <table border=1>
  6.  
  7. <tr>
  8.  
  9. <th> Samedi </th> <th> Dimanche </th> <th> Lundi </th> <th> Mardi </th> <th> Merecredi </th> <th> Jeudi </th> <th> Vendredi </th>
  10. </tr>
  11. <tr>
  12. <?php
  13. for($i=0;$i<7;$i++){
  14.  
  15. echo "<td>\n";
  16. shuffle($input);
  17. echo $input[0] ." 7H-15H\n" ;
  18. echo $input[1] ." 15H-23H\n" ;
  19. echo $input[2] ." 23H-7H\n" ;
  20.  
  21. echo "</td>\n";
  22. }
  23. ?>
Success #stdin #stdout 0s 52488KB
stdin
Standard input is empty
stdout
<table  border=1>

<tr>

<th> Samedi </th> <th> Dimanche </th> <th> Lundi </th> <th> Mardi </th> <th> Merecredi </th> <th> Jeudi </th> <th> Vendredi </th>
</tr>
<tr>
<td>
Name4 7H-15H
Name1 15H-23H
Name2 23H-7H
</td>
<td>
Name2 7H-15H
Name4 15H-23H
Name3 23H-7H
</td>
<td>
Name1 7H-15H
Name2 15H-23H
Name3 23H-7H
</td>
<td>
Name3 7H-15H
Name2 15H-23H
Name4 23H-7H
</td>
<td>
Name3 7H-15H
Name2 15H-23H
Name1 23H-7H
</td>
<td>
Name2 7H-15H
Name1 15H-23H
Name3 23H-7H
</td>
<td>
Name4 7H-15H
Name1 15H-23H
Name2 23H-7H
</td>