fork(1) download
  1. <?php
  2. $array_number = array();
  3. for($i = 1; $i <=9; $i++)
  4. {
  5. $value = rand(1,9);
  6. while (in_array($value, $array_number))
  7. {
  8. $value = rand(1,9);
  9. }
  10. $array_number[$i - 1] = $value;
  11. }
  12. function do_shortcode($value){
  13. return $value;
  14. }
  15. ?>
  16. <div class="banners">
  17. <?php echo do_shortcode("meubanner_".$array_number[0]);?>
  18. <?php echo do_shortcode("meubanner_".$array_number[1]);?>
  19. <?php echo do_shortcode("meubanner_".$array_number[2]);?>
  20. </div>
  21. <div class="banners">
  22. <?php echo do_shortcode("meubanner_".$array_number[3]);?>
  23. <?php echo do_shortcode("meubanner_".$array_number[4]);?>
  24. <?php echo do_shortcode("meubanner_".$array_number[5]);?>
  25. </div>
  26. <div class="banners">
  27. <?php echo do_shortcode("meubanner_".$array_number[6]);?>
  28. <?php echo do_shortcode("meubanner_".$array_number[7]);?>
  29. <?php echo do_shortcode("meubanner_".$array_number[8]);?>
  30. </div>
Success #stdin #stdout 0.02s 20568KB
stdin
Standard input is empty
stdout
<div class="banners">
     meubanner_7     meubanner_5     meubanner_8</div>
<div class="banners">
     meubanner_4     meubanner_1     meubanner_2</div>
<div class="banners">
     meubanner_6     meubanner_3     meubanner_9</div>