treehouse : what would you like to learn today?
Web Design Web Development iOS Development

Random String from Pre-Determined Characters

Last updated on:

<?php
$string = "abcdwxyz456789";
for($i=0;$i<25;$i++){
   $pos = rand(0,13);
   $str .= $string{$pos};
}
echo $str;
?>
View Comments

Leave a Comment

Use markdown or basic HTML and be nice.