Over a million developers have joined DZone.

Random Quotes

·
Called as quotes.php it will display a single random quote.  Called as quotes.php?all=1 it will display all quotes in an unordered list.  No database is required, and it should be fairly obvious how to add new quotes.


";
        for($i=0; $i<=count($quotes)-1; $i++) {
                echo "
  • ".$quotes[$i]."
  • "; } echo ""; } else { srand ((double) microtime() * 1000000); $randomquote = rand(0,count($quotes)-1); echo $quotes[$randomquote]; } ?>
    Topics:

    {{ parent.title || parent.header.title}}

    {{ parent.tldr }}

    {{ parent.urlSource.name }}