preg_split

preg_split -- Split string by a regular expression

Description

array preg_split ( string pattern, string subject [, int limit [, int flags]])

הערה :

PREG_SPLIT_NO_EMPTY

PREG_SPLIT_DELIM_CAPTURE

PREG_SPLIT_OFFSET_CAPTURE

Note that this changes the return value in an array where very element is an array consisting of the matched string at offset 0 and it ' s string offset into subject at offset 1 . This flag is available since 4.3.0 .



דוגמה 1 . preg_split( ) דוגמה 1 . preg_split( ) example :






דוגמה 2 .






דוגמה 3 .