$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 = <<Smuckles von Smee was wandering around in the garden today when he saw a funky rainbow.

rainbow

Get your own Smuckles von Smee shirts (in blue or black) at the monster mart!
EOD; echo ''; ?>
Monster Constructor Set! Monster Constructor Set! Put a hat on the monster Put a hat on the monster Monster magnifier! Monster magnifier! The monster hokey pokey The monster hokey pokey Meet Sluggo's cousin, Snailio Meet Sluggo's cousin, Snailio Mildred is all dressed up Mildred is all dressed up Hold on to your tentacles! Hold on to your tentacles! Peeps McGoo is befuddled. Peeps McGoo is befuddled. Smuckles is surprised. Smuckles is surprised. Smoopy practices winking. Smoopy practices winking.

Kristen's monsters are here to tell you about .

Smuckles von Smee was wandering around in the garden today when he saw a funky rainbow.

rainbow

Get your own Smuckles von Smee shirts (in blue or black) at the monster mart!

Smuckles von Smee finds a rainbow

Tuesday, June 16, 2009
Smuckles von Smee was wandering around in the garden today when he saw a funky rainbow.

rainbow

Get your own Smuckles von Smee shirts (in blue or black) at the monster mart!

Smuckles von Smee finds a rainbow

Smuckles von Smee was wandering around in the garden today when he saw a funky rainbow.

rainbow

Get your own Smuckles von Smee shirts (in blue or black) at the monster mart!