Tools, FAQ, Tutorials:
Converting Leading Characters to Upper Case in PHP
How To Convert Leading Characters to Upper Case?
✍: FYIcenter.com
If you are processing an article, you may want to capitalize the first character of a sentence by using the ucfirst() function. You may also want to capitalize the first character of every words for the article title by using the ucwords() function. Here is a PHP script on how to use ucfirst() and ucwords():
<?php $string = "php string functions are easy to use."; $sentence = ucfirst($string); $title = ucwords($string); print("$sentence\n"); print("$title\n"); print("\n"); ?>
This script will print:
Php string functions are easy to use. Php String Functions Are Easy To Use.
Â
⇒PHP Built-in Functions for Strings
⇒⇒PHP Tutorials
2016-10-13, 1159👍, 0💬
Popular Posts:
How to View Atom Feeds with IE (Internet Explorer)? If you want to view Atom Feeds with IE (Internet...
What is EPUB 3.0 Metadata "dc:publisher" and "dc:rights" elements? EPUB 3.0 Metadata "dc:publisher" ...
Where to find tutorials on RSS specifications? I want to learn it to describe my API services. Here ...
How to add request body examples to my Azure API operation 2017 version to make it more user friendl...
What Is the 2017 Version of Azure API Management Service? The 2017 Version of Azure API Management a...