Function

preg_split

Synopsis

preg_split(string, string, mixed, mixed): mixed

Area
Runtime\PS\Compat\preg_splitareas

Description

preg_split splits $subject on every match of $pattern into at most $limit pieces, the last of which holds the unsplit rest; $flags selects PREG_SPLIT_NO_EMPTY, PREG_SPLIT_DELIM_CAPTURE and PREG_SPLIT_OFFSET_CAPTURE.

Usage

$value = preg_split($arguments);
$fn = preg_split(...);

See also