--TEST-- Test chop() function : usage variations - with heredoc string --FILE-- --EXPECTF-- *** Testing chop() : with heredoc strings *** --- Iteration 1 --- string(0) "" string(0) "" --- Iteration 2 --- string(0) "" string(0) "" --- Iteration 3 --- string(86) "first line of heredoc string second line of heredoc string third line of heredocstring" string(86) "first line of heredoc string second line of heredoc string third line of heredocstring" --- Iteration 4 --- string(23) "hello world hello world" string(23) "hello world hello world" --- Iteration 5 --- string(31) "hello123world456 1234hello 1234" string(25) "hello123world456 1234hell" --- Iteration 6 --- string(24) "helloworldhello hello" string(23) "helloworldhello hell" Done