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

Two dancing monsters dance up a storm.

two_dancing_monsters.jpg
EOD; echo ''; ?>
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 Fillipe eats cake! Fillipe eats cake! Meet Margaret McSluggerton Meet Margaret McSluggerton Angry Monster and bedtime Angry Monster and bedtime

Kristen's monsters are here to tell you about .

Two dancing monsters dance up a storm.

two_dancing_monsters.jpg

Watch out for bad weather

Wednesday, January 28, 2009

Two dancing monsters dance up a storm.

two_dancing_monsters.jpg

Watch out for bad weather

Two dancing monsters dance up a storm.

two_dancing_monsters.jpg