TCPDF_STATIC::pregSplit( $pattern,  $modifiers,  $subject,  $limit = NULL,  $flags = NULL )

Split string by a regular expression.


Description Description

This is a wrapper for the preg_split function to avoid the bug: https://bugs.php.net/bug.php?id=45850


Parameters Parameters

$pattern

(Required) (string) The regular expression pattern to search for without the modifiers, as a string.

$modifiers

(Required) (string) The modifiers part of the pattern,

$subject

(Required) (string) The input string.

$limit

(Optional) (int) 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, 0 or NULL means "no limit" and, as is standard across PHP, you can use NULL to skip to the flags parameter.

Default value: NULL

$flags

(Optional) (int) The flags as specified on the preg_split PHP function.

Default value: NULL


Top ↑

Return Return

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


Top ↑

Source Source

File: includes/lib/tcpdf/include/tcpdf_static.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
6.0.023 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.