PHP random uit array + random getal


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



Copy this code and paste it in your HTML
  1. <?php
  2.  
  3. $fonts = array("arial", "verdana", "tahoma");
  4.  
  5. ?>
  6. <font face="<?php echo $fonts[rand(0,2)]; ?>" size="<?php echo rand(5,10); ?>">Some Text <?php echo rand(5,10); ?></font>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.