--TEST-- Test chop() function : usage variations - strings with embedded nulls --FILE-- --EXPECTF-- *** Testing chop() : string with embedded nulls *** --- Iteration 1 --- string(11) "helloworld" string(11) "helloworld" string(11) "helloworld" --- Iteration 2 --- string(6) "hello" string(6) "hello" string(6) "hello" --- Iteration 3 --- string(5) "hello" string(5) "hello" string(6) "hello" --- Iteration 4 --- string(13) "hello world" string(13) "hello world" string(15) "hello world" --- Iteration 5 --- string(9) "\0hello\0" string(9) "\0hello\0" string(7) "\0hello" --- Iteration 6 --- string(9) "hello\0\0" string(9) "hello\0\0" string(5) "hello" --- Iteration 7 --- string(0) "" string(0) "" string(1) "" --- Iteration 8 --- string(0) "" string(0) "" string(2) "" --- Iteration 9 --- string(6) "hello" string(6) "hello" string(7) "hello" --- Iteration 10 --- string(11) "helloworld" string(11) "helloworld" string(11) "helloworld" Done