Home > PHP > Function > PCRE > preg_split()

preg_split()

preg_split - Split string by a regular expression

Syntax

array preg_split ()

Arguments

-

Description

Split the given string by a regular expression.

Version

PHP 4, 5

Return value

Returns an array containing substrings of subject split along boundaries matched by pattern.