1--TEST-- 2Test strripos() function : usage variations - heredoc string containing escape chars for 'haystack' argument 3--FILE-- 4<?php 5/* Test strripos() function by passing heredoc string containing escape chars for haystack 6 * and with various needles & offsets 7*/ 8 9echo "*** Testing strripos() function: with heredoc strings ***\n"; 10echo "-- With heredoc string containing escape characters --\n"; 11$control_char_str = <<<EOD 12Hello, World\n 13Hello\tWorld 14EOD; 15var_dump( strripos($control_char_str, "\n") ); 16var_dump( strripos($control_char_str, "\t") ); 17var_dump( strripos($control_char_str, "\n", 12) ); 18var_dump( strripos($control_char_str, "\t", 15) ); 19 20?> 21--EXPECT-- 22*** Testing strripos() function: with heredoc strings *** 23-- With heredoc string containing escape characters -- 24int(13) 25int(19) 26int(13) 27int(19) 28