“In a badly designed book, the letters mill and stand like starving horses in a field. In a book designed by rote, they sit like stale bread and mutton on the page. In a well-made book, where designer, compositor and printer have all done their jobs, no matter how many thousands of lines and pages, the letters are alive. They dance in their seats. Sometimes they rise and dance in the margins and aisles.”
—Robert Bringhurst, The Elements of Typographic Style
Your IP is 216.73.216.21!
Build a Text (or Anything) Rotator in 4 Lines of Code
One random dull quote.
<?php
$items = Array(
'One random dull quote.',
'A second random dull quote.',
'A third random dull quote.',
);
// Obtain number of items in the array:
$num_items = count($items) - 1 ;
// Pick a number between 0 and total:
$pick_number = rand(0, $num_items) ;
// Print HTML container with the selected item:
echo "<p>" . $items[$pick_number] . "</p>\n" ;
?>