Function prototype: Array split (String $pattern, string $string [, int $limit])
The PHP split () function returns an array of strings, each of which is $string by a regular expression $pattern as a substring of the boundary. If $limit is set, the returned array contains a maximum of $limit cells. And the last unit contains all the rest of the $string. Spliti is the ignore size version of Split. Code 6.8 is a frequently used example of a date.
PHP split () function code 6.8 split of date
- < ? PHP
- $ Date "08/30/2006";
- The delimiter can be a slash, a dot, or a horizontal line
(' [/.-] ', $date);
- Output to a different time format
$yearbr/>n ";
- ?>
I hope that through the code example of this PHP split () function, we can clearly understand the specific meaning of this function.
http://www.bkjia.com/PHPjc/446247.html www.bkjia.com true http://www.bkjia.com/PHPjc/446247.html techarticle function prototype: Array split (String $pattern, string $string [, int $limit]) the PHP split () function returns an array of strings, each of which is $string by regular expression $ Pattern as boundary ...