Voting

: eight minus four?
(Example: nine)

The Note You're Voting On

pete at namecube dot net
15 years ago
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);
}
?>

<< Back to user notes page

To Top