--TEST-- Test str_split() function : usage variations - different heredoc strings as 'str' argument --FILE-- --EXPECTF-- *** Testing str_split() : heredoc strings as 'str' argument *** -- Iteration 1 -- array(1) { [0]=> string(0) "" } -- Iteration 2 -- array(1) { [0]=> string(0) "" } -- Iteration 3 -- array(1) { [0]=> string(1) "a" } -- Iteration 4 -- array(3) { [0]=> string(10) "This is si" [1]=> string(10) "mple hered" [2]=> string(9) "oc string" } -- Iteration 5 -- array(6) { [0]=> string(10) "This is to" [1]=> string(10) " check str" [2]=> string(10) "_split fun" [3]=> string(10) "ction with" [4]=> string(10) " multiline" [5]=> string(8) " heredoc" } -- Iteration 6 -- array(4) { [0]=> string(10) "This check" [1]=> string(10) "s heredoc " [2]=> string(10) "with $, %," [3]=> string(9) " &, chars" } -- Iteration 7 -- array(4) { [0]=> string(10) "This check" [1]=> string(10) "s str_spl" [2]=> string(10) "it() Escap" [3]=> string(7) "e chars" } -- Iteration 8 -- array(8) { [0]=> string(10) ""To check " [1]=> string(10) "" in hered" [2]=> string(10) "oc" I'm su" [3]=> string(10) "re it'll w" [4]=> string(10) "ork also w" [5]=> string(10) "ith \ whic" [6]=> string(10) "h is singl" [7]=> string(7) "e slash" } Done