for anyone wanting to ucfirst each word in a sentence this works for me:
<?php
function ucfirst_sentence($str)
{
return preg_replace('/\b(\w)/e', 'strtoupper("$1")', $str);
}
?>
for anyone wanting to ucfirst each word in a sentence this works for me:
<?php
function ucfirst_sentence($str)
{
return preg_replace('/\b(\w)/e', 'strtoupper("$1")', $str);
}
?>