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 =
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
Explode
(PHP 4, PHP 5, PHP 7)
Explode-split a string by string
explode-using one string to split another string
Descriptionarrayexplode( $delimiter, $string[, $limitPHP_INT_MAX] )//Returns an array
Let's talk about the use of explode and implode in php, ballet shoes, and hope to help friends and friends! Speaking of php, the function is very long and important, and it is also a php enthusiast, and friends who prefer php Advanced must control
When it comes to PHP, functions are often the main, but also PHP enthusiasts, and preferences of the Friends of PHP to control the Dongdong, learning PHP Huubang also know that the array is also necessary to grasp, to that way, advanced PHP, is to
Speaking of PHP, the function is very long and important, and it is also a PHP enthusiast, and friends who prefer PHP advanced must control the stuff, learning PHP friends also know that the array is also necessary to grasp, in that way, advanced
Speaking of php, the function is very long and important, and it is also a php enthusiast, and friends who prefer php advanced must control the stuff, learning php friends also know that the array is also necessary to grasp, in that way, advanced
I believe that the small partners see the title will know that PHP explode () function of the string function, and we also know explode () function to write the segmentation of the split string PHP function, then we will give you a detailed
Introduction: This is a detailed page of explode Analysis of PHP source code. It introduces PHP, related knowledge, skills, experience, and some PHP source code.
Class = 'pingjiaf' frameborder = '0' src = 'HTTP: // biancheng.dnbc?info/pingjia.php?
The explode () function splits the string into arrays.
Syntax
explode (separator,string,limit)
Parameters
Description
Separator
Necessary. Specify where to split the string.
String
Necessary.
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.