| | |
Dispaly Each First character is capital ??
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Jan 2009
Posts: 60
Reputation:
Solved Threads: 4
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.
or
"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 Syntax (Toggle Plain Text)
<?php $str="DAniweb it DISCUSSION Community" $str = strtolower($str); $str = ucwords($str); ?>
or
PHP Syntax (Toggle Plain Text)
<?php $str ="DAniweb it DISCUSSION Community" $str = ucwords(strtolower($str)); ?>
![]() |
Other Threads in the PHP Forum
- Previous Thread: HTML to PDF and print
- Next Thread: OOP Problem, help me?
| Thread Tools | Search this Thread |
.htaccess alerts apache api archive array autocomplete beginner binary broken cakephp checkbox class cms code convert cron curl database dataentry date display duplicates dynamic echo email emptydisplayvalue error execute explodefunction file files firstoptioninphpdroplist folder form forms function functions google hack href htaccess html htmlspecialchars image include insert ip javasciptvalidation javascript joomla keywords limit link login mail matching menu methods mlm multiple mysql network object oop paypal pdf php problem query radio random recursion recursive redirect remote script search securephp server sessions shot sms source space sql subscription syntax system table tutorial tutorials update upload url validator variable video web youtube





