Posted By

sales2u on 08/06/10


Tagged

phprandom


Versions (?)

PHP random uit array + random getal


 / Published in: PHP
 

  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  

You need to login to post a comment.