Thread: Flat Explode
View Single Post
Old 11-04-2004, 05:40 PM   #3 (permalink)
falsepride
Regular Contributor
 
Join Date: Oct 2004
Posts: 230
falsepride is on a distinguished road
never knew about the ucfirst command existed, but my way of doing it would have been
PHP Code:
foreach ($exploded as $e) {
if(
$three == "yes") {
$e strtoupper($e);
$one "";
$two "";
$three "";
}
if ((
$two == "yes") && ($e == " ")) {
$three "yes";
}
if ((
$one == "yes") && ($e == " ")) {
$two "yes";
}
if(
$e == "." || $e == "?" || $e == "!") {
$one "yes"
}


Last edited by sde; 11-04-2004 at 07:00 PM.
falsepride is offline   Reply With Quote