$pos && $npos < $len ) { $pos = $npos; } } if ( !$pos ) { // substr $len-3, because the ellipsis adds 3 chars return substr($str, 0, $len-3) . '...'; } else { // $pos+1 to grab punctuation mark return substr($str, 0, $pos+1); } } $mystring = <<

One lavender monster eats toast for dinner, and decides it is buttery and delicious.

monster_eats_toast2.jpg
EOD; echo ''; ?>
Purple monster turns red! Purple monster turns red! One purple monster eats curry One purple monster eats curry Watch out for bad weather Watch out for bad weather A monster and his book. A monster and his book. Three red monsters Three red monsters How are the monsters made? How are the monsters made? Today's Insta-Monster! Today's Insta-Monster! Give a monster his pants. Give a monster his pants. New personal monster page! New personal monster page! More Monster Clubhouse More Monster Clubhouse

Kristen's monsters are here to tell you about .

One lavender monster eats toast for dinner, and decides it is buttery and delicious.

monster_eats_toast2.jpg

Toast for dinner

Friday, February 6, 2009

One lavender monster eats toast for dinner, and decides it is buttery and delicious.

monster_eats_toast2.jpg

Toast for dinner

One lavender monster eats toast for dinner, and decides it is buttery and delicious.

monster_eats_toast2.jpg