PHP Chinese processing function set, read PHP Chinese processing function set, php Chinese processing tool function --- space --- stringGBspace (string) --------- add a space between each text stringGBunspace (string) ------- clear stringclear_space
---the space of the PHP Chinese processing function---
String Gbspace (String)---------spaces between each textString Gbunspace (String)-------white space between each textString Clear_space (String)-------used to clear extra spaces
---The
1. The difference between single and multiple quotes(1) Single quotation marks: the string enclosed in single quotation marks can no longer contain single quotation marks, that is, single quotation marks cannot be nested. If it is necessary to
First of all, it might be irrelevant to the thinkphp framework routing parsing code, so if you're interested, you can test it.
["REQUEST_URI"]=> string(19) "/Wgh/Wgh/index.html" ["SCRIPT_NAME"]=> string(10) "/index.php" ["PATH_INFO"]=> string(19) "/
1:select * from Tb_user WHERE (fid=10) or (fid=33) or (fid=22) or (fid=76) or (fid=13) or (fid=44);
To render the effect is FID for
10
33
22
76
13
44
Is there any way to achieve this?
2: $a = ' a/b/c/d/e.php '; $b = ' a/b/12/34/c.php '; Find the
---space---
String Gbspace (String)---------spaces between each text
String Gbunspace (String)-------white space between each text
String Clear_space (String)-------used to clear extra spaces
---conversion---
String gbcase (String,offset)---Converts
Summary of PHP5 string processing functions, which are frequently used by php users. Easy to search and use. Addcslashes-add the backslash escape character addslashes to some characters in the string-escape the characters in the string in the
This article mainly introduces php's method of converting string initials to uppercase, involving the use of ucfirst and ucwords functions in php, for more information, see the example in this article. Share it with you for your reference. The
This article summarizes PHP's commonly used string manipulation functions. Share to everyone for your reference, as follows:
/* Common string output function * * the echo () output String * print () outputs one or more strings * die () outputs a
Introduction: This is a detailed page for summary of several character functions in PHP. It introduces the knowledge, skills, and experience related to the Summary of several character functions in PHP, string, and PHP, and some PHP source code.
Introduction: This is a detailed page for connecting to the LDAP server using PHP. It introduces the related knowledge, skills, experience, and some PHP source code.
Class = 'pingjiaf' frameborder = '0' src = 'HTTP: //
Addcslashes-add backslash escape characters to some characters in the stringAddslashes-escape characters in the string in the specified MethodBin2hex-convert binary data to hexadecimal RepresentationAlias function of chop-rtrim ()Chr-returns the
Some time ago, I used ZF to treat him as a black box. I feel that it is not very good. I have always been eager to look at the source code,... If you look at it at, the challenge is indeed a little big. One day, I thought I hadn't reviewed the
PHP provides us with a function for converting uppercase and lowercase letters into strings,Strtoupper () converts all the specified characters to uppercase;strtolower () converts characters from north to lowercase;ucwords () turns the first letter
String operations and regular expressionsString formatting;Concatenate and separate strings using string functions;String comparison;Use string functions to match and replace substrings;Use a regular expression;String formatting1. Space removal:
Mathematical functions1.abs (): Absolute value$abs = ABS (-4.2); 4.2 Numeric Absolute number2.ceil (): Into a method to take the wholeecho ceil (9.999); 10 floating point number in one rounding3.floor (): Rounding off the Rounding methodecho Floor (9
PHP from Beginner to proficient
The string in PHP
Hello everyone, continue to follow up the most detailed knowledge of PHP update, this week, with you to focus on the use of strings in PHP. In PHP, strings are a very important concept, basically
---space---
String Gbspace (String)---------space between each Chinese text
String Gbunspace (String)-------space clearance between text in each
String Clear_space (String)-------to clear extra spaces
---conversion---
String gbcase (String,offset)--
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.