AddSlashes: String added to the slash. bin2hex: binary into hexadecimal. Chop: Remove continuous blanks. Chr: returns the ordinal value of the character. chunk_split: The string is divided into small pieces. convert_cyr_string: Converts the ancient Slavonic string into another string. crypt: Encrypt the string with DES encoding. echo: output string. explode: cut the string. flush: clear the output buffer. ...
PHP's ability to handle strings is powerful and varied, but sometimes you need to choose the simplest and most ideal solution. This article lists 10 common examples of string processing in PHP and provides the best way to handle them. 1. Determine the length of a string this is one of the most obvious examples of the article, the question is how we determine the length of a string, here we can not but mention the strlen () function: $text = "Sunny Day" ...
STRTR (PHP3, PHP4) strtr---&http://www.aliyun.com/zixun/aggregation/37954.html ">nbsp; Converts some character syntax: string strtr (String str, string from, string to) Description: This function operates on parameter str, and the arguments from all occurrences of ...
MSSQL SQL string Interception instance code about string interception we use the SUBSTRING function substring (expression, start, length) to return characters, binary, Text&
Convert_cyr_string (PHP3 >= 3.0.6, PHP4) convert_cyr_string---&http://www.aliyun.com/zixun/aggregation/ 37954.html ">nbsp; Convert Cyrillic font to another syntax: string convert_cyr_string (String str, st ...)
Htmlspecialchars (PHP3, PHP4) htmlspecialchars---&http://www.aliyun.com/zixun/aggregation/37954.html ">nbsp ; Convert special characters to HTML entity syntax: String Htmlspecialchars (String string) Description: Some characters in html ...
NL2BR (PHP3, PHP4) nl2br---&http://www.aliyun.com/zixun/aggregation/37954.html ">nbsp; Convert new line to HTML <BR> syntax: String nl2br (String string) Description: Insert ' <BR> ' before all new rows (newline), this function passes ...
Bin2Hex (PHP3 >=3.0.9, PHP4) bin2hex---&http://www.aliyun.com/zixun/aggregation/37954.html ">nbsp; Convert binary data to hexadecimal representation syntax: string Bin2Hex (String str) Description: Returns the ASCII string containing the 16-digit representation of STR, the conversion is ...
Htmlentities (PHP3, PHP4) htmlentities---&http://www.aliyun.com/zixun/aggregation/37954.html ">nbsp; Convert all characters to HTML entity syntax: String htmlentities (String string) Description: This function and Htmlspecialchars (...
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.