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

Felicia likes hanging upside-down from the branches of the big tree in her backyard.

oops.jpg
EOD; echo ''; ?>
Happy Valentine's Day! Happy Valentine's Day! Red flower totebag Red flower totebag Rawr! Pink monster makes a face. Rawr! Pink monster makes a face. Morning monster needs his coffee Morning monster needs his coffee 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

Kristen's monsters are here to tell you about .

Felicia likes hanging upside-down from the branches of the big tree in her backyard.

oops.jpg

Monsters like trees!

Sunday, February 15, 2009

Felicia likes hanging upside-down from the branches of the big tree in her backyard.

oops.jpg

Monsters like trees!

Felicia likes hanging upside-down from the branches of the big tree in her backyard.

oops.jpg