Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

preg_split()

3 tags 1 category

preg_split() — Split string by a regular expression.

preg_split() — Split the given string by a regular expression.

Inputs: pattern: The pattern to search for, as a string. subject: The input string. limit: If specified, then only substrings up to limit are returned with the rest of the string being placed in the last substring. A limit of -1 or 0 means “no limit”. flags: flags can be any combination of the following flags (combined with the | bitwise operator): PREG_SPLIT_NO_EMPTY If this flag is set, only non-empty pieces will be returned by preg_split. PREG_SPLIT_DELIM_CAPTURE If this flag is set, parenthesized expression in the delimiter pattern will be captured and returned as well.

Returns: Returns an array containing substrings of subject split along boundaries matched by pattern, or false on failure.

Term Connections

Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.

Loading term connections…