<?phpAs the example shown, you must convert the sentence to lower character first otherwise it may not work.
$foo = 'I ATE APPLE!';
$foo = ucwords($foo); //I Ate Apple!
$bar = 'I ATE APPLE!!';
$bar = ucwords($bar); // I ATE APPLE!!
$bar = ucwords(strtolower($bar)); //I Ate Apple!
?>
No comments:
Post a Comment