| | |
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: 61
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?
Views: 936 | Replies: 2
| Thread Tools | Search this Thread |
Tag cloud for PHP
.htaccess access ajax apache api array beginner binary broken cakephp checkbox class cms code cron curl database date directory display download duplicates dynamic echo email error execution file files folder form forms function functions google href htaccess html htmlspecialchars image include insert integration ip java javascript joomla jquery limit link login loop mail menu methods mlm mod_rewrite multiple mysql oop parse paypal pdf php phpvotingscript problem query radio random recursion regex remote script search select server session sessions sms soap source space speed sql structure syntax system table tutorial update updates upload url validation validator variable video web xml youtube





