Re: Generating random headers in php
PHP Code:
srand(time()); $random = (rand()%3); if ($random == 0){ echo"<h1>some heading</h1>"; } elseif ($random == 1){ echo"<h1>another heading</h1>"; } elseif ($random == 2){ echo"<h1>a third heading</h1>"; }
just change the %3 to however many different headings you want to choose from
|