Yayo, that'd output:
"DAniweb It DISCUSSION Community"
You need to use strtolower(), and ucwords(). strtolower() makes all characters in a string lowercase; ucwords() capitalizes the first letter of each word in a string.
<?php
$str="DAniweb it DISCUSSION Community"
$str = strtolower($str);
$str = ucwords($str);
?>
or
<?php
$str ="DAniweb it DISCUSSION Community"
$str = ucwords(strtolower($str));
?>
Andrieux
Junior Poster in Training
61 posts since Jan 2009
Reputation Points: 10
Solved Threads: 4