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));
?>
Reputation Points: 10
Solved Threads: 4
Junior Poster in Training
Offline 60 posts
since Jan 2009