$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 = <<

Sometimes he needs more than one cup.

monster_drinks_coffee.jpg

You can buy a real mug just like this here.

EOD; echo ''; ?>
Toast for dinner Toast for dinner 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!

Kristen's monsters are here to tell you about .

Sometimes he needs more than one cup.

monster_drinks_coffee.jpg

You can buy a real mug just like this here.

Morning monster needs his coffee

Sunday, February 8, 2009

Sometimes he needs more than one cup.

monster_drinks_coffee.jpg

You can buy a real mug just like this here.

Morning monster needs his coffee

Sometimes he needs more than one cup.

monster_drinks_coffee.jpg

You can buy a real mug just like this here.