I got the capitalization with this code (probably not the best but it is just a script for some friends to use, nothing professional):
PHP Code:
<?php
$sample = "these have. two. spaces between them. but this. and this. only. have one.<b>and tags?</b> i do not know";
$sample=str_replace('. ', '. ', $sample);
$sample=str_replace('> ', '>', $sample);
$sample=str_replace('>', '> ', $sample);
$sample=explode('. ',$sample);
for($i=0;$i<count($sample);$i++){
$samplef .= ucfirst($sample[$i]) . ". ";
}
$sample=explode('> ',$samplef);
unset($samplef);
for($x=0;$x<count($sample);$x++){
$samplef .= ucfirst($sample[$x]);
if($x != (count($sample)-1)){$samplef .= "> ";}
}
echo"$samplef";
?>
Bookmarks