Mega Code Archive

 
Categories / Php / Strings
 

Preg_split() Flags

Reference Number               Value   PREG_SPLIT_NO_EMPTY            Causes empty substrings to be discarded.   PREG_SPLIT_DELIM_CAPTURE       Causes any references inside pattern to be captured and returned as part of the function's output.   PREG_SPLIT_OFFSET_CAPTURE      Causes the position of each substring to be returned as part of the function's output (similar to PREG_OFFSET_CAPTURE in preg_match()).