Ucwords ();
Strtoupper ();
Ucfirst ()
Strtolower ();
PHP ucwords () functionPHP String functionInstanceConvert the first character of each word to uppercase:Running an instanceDefinition and usageThe Ucwords () function converts the
Recent projects using the Symfony framework, this framework for the operation of the database in this team using ORM to operate, to be honest, the development efficiency and efficiency of using ORM is not necessarily high, to the name of its entity
Use PHP to convert an underscore-delimited string into a camel-named style and capitalize the first letter after the underscore
Recent projects using the Symfony framework, this framework for the operation of the database in this team using ORM to
There are a lot of string functions in PHP Oh, it is said that PHP is composed of functions, which allows developers to speed up the development of the site Oh, well, crap don't say much. Let's take a look at my friends for free PHP string function
A string in PHP can be defined in the following four methods:Single quotesDouble quotation marksHeredoc syntax structureNowdoc syntax structure (since PHP 5.3.0 and later)Single quotesThe simplest way to define a string is to enclose it with single
PHP Tutorial String manipulation function Introductory article1. Definition and display of stringsDefinition: By "", "" to markDisplays: Echo () and print (), but print () has a return value of 1, and Echo () does not, but Echo is faster than print (
First, the formatting of the string
1. Processing of strings: trim (), LTrim (), RTrim ()
$name =trim ($_post[' name "), $name =trim ($_post[' password ')), $name =trim ($_post[' email ');
The trim () function can strip the starting and ending
arrays, strings, and databases are the most, most, and most commonly used functions in our functions, arrays and databases We haven't talked about it yet, and we'll come back to you when we talk about it.Of course, there are many string functions in
Addslashes: Adds a slash to the string.Bin2hex: binary to hexadecimal.Chop: removes consecutive gaps.Chr: returns the character of the ordinal value.Chunk_split: splits a string into segments.Convert_cyr_string: convert the ancient Slavic string to
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.