Posted By

Jotape on 10/26/11


Tagged

php html


Versions (?)

PHP RANDON HTML


 / Published in: PHP
 

  1. <?php
  2.  
  3. $a = array(
  4. 'Código 1 HTML aqui',
  5. 'Código 2 HTML aqui',
  6. 'Código 3 HTML aqui',
  7. 'Código 4 HTML aqui'
  8. );
  9. shuffle($a);
  10. $na = array_slice($a, 0, 4);
  11. echo implode('', $na);
  12.  
  13. ?>

Report this snippet  

You need to login to post a comment.