PHP features: the command line mode starts with version 4.3.0. PHP provides a new type of cli sapi (Server Application Programming Interface, Server Application Programming Port) support, named CLI, command Line Interface, that is, Command Line
PHP Learning Series (1)--String processing function (4), PHP function
16. The HEBREVC () function converts a right-to-left stream of Hebrew text to a left-to-right stream. It will also convert the new line (\ n) to。 Only ASCII characters between 224
Starting with version 4.3.0, PHP provides a new type of CLI SAPI (Server application Programming Interface, service-side application programming port) support, called CLI, which means Command line Interface , which is the command-line interface. As
PHP Learning Series (1) -- string processing functions (4), php Functions
16. The hebrevc () function switches the flow of Hebrew text from right to left to the flow from left to right. It also converts the new line (\ n) to . Only ASCII characters
With a simple understanding of the PHP data type in the previous article, we know the string type, this article will introduce the string functions commonly used in PHP.The string is a sequence of characters, such as "Hello world!".PHP String
RTrim
(PHP 4, PHP 5, PHP 7)
Rtrim-strip whitespace (or other characters) from the end of a string
rtrim-Delete whitespace characters (or other characters) at the end of a string
DescriptionStringRTrim (String$str [,
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
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
This article provides a detailed analysis on how to use regular expressions for search replacement in PHP. For more information, see
1. preg_match-execute a regular expression to matchInt preg_match (string $ pattern, string $ subject [, array & $
PHP String functions are part of the PHP core. These functions can be used without installation.
function
Description
Addcslashes ()
Returns a string that adds a backslash before the specified character.
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.