function prototypes for explode ():Array explode (string separator,string input [, int limit]); [, int limit] is a means of optional
Parameters
Description
Separator
Necessary. Specifies where to split the
The segmentation of a split string string is achieved through the explode () function. The explode () function splits a string by the specified rules and returns an array of values. Its syntax is as follows: The parameter list for the explode
This example describes how PHP obtains the number of days and date arrays by month. Share to everyone for reference, as follows: function Get_day ($date) {$tem = explode ('-', $date);//cut date to get year and month $year = $tem [' 0 ']; $month =
PHP splits and connects strings using functions such as explode (), implode (), and join (), and explodeimplodePHP uses functions such as explode (), implode (), and join () to separate and connect strings.
Generally, we want to view each part of
PHP String functions are widely used in the development of PHP Web sites, such as the use of PHP string functions for string segmentation, interception, matching, replacement and so on. PHP String functions are essential for beginners in PHP, this
PHP string functions are widely used in PHP website development. for example, PHP string functions are used to segment, intercept, match, and replace strings. PHP string functions are widely used in PHP website development. for example, PHP string
basic functions of array manipulationThe key name and value of the arrayArray_values ($arr); Gets the value of the array Array_keys ($arr), gets the key name of the array array_flip ($arr), and the values in the array are exchanged with the key
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:
ArticleDirectory
A). Convert the character to uppercase: strtoupper ()
B). Convert the character to lowercase: strtolower ()
C). If the first character is a letter, convert it to uppercase: ucfirst ()
D). Convert the first letter
What is the significance of this sentence? if (isset ($ _ SERVER ['http _ X_REWRITE_URL ']) {
$ _ SERVER ['request _ URI '] = $ _ SERVER ['http _ X_REWRITE_URL'];
$ ___ S = explode (".", $ _ SERVER ['request _ URI ']);
$ ____ S = explode ("? ", $ _
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.