PHP RANDON HTML


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.