1--TEST-- 2Test strrpos() function : usage variations - heredoc string containing quotes for 'haystack' argument 3--FILE-- 4<?php 5/* Test strrpos() function by passing heredoc string containing quotes for haystack 6 * and with various needles & offsets 7*/ 8 9echo "*** Testing strrpos() function: with heredoc strings ***\n"; 10echo "-- With heredoc string containing quote & slash chars --\n"; 11$quote_char_str = <<<EOD 12it's bright,but i cann't see it. 13"things in double quote" 14'things in single quote' 15this\line is /with\slashs 16EOD; 17var_dump( strrpos($quote_char_str, "line") ); 18var_dump( strrpos($quote_char_str, 'things') ); 19var_dump( strrpos($quote_char_str, 'things', 0) ); 20var_dump( strrpos($quote_char_str, "things", 20) ); 21echo "*** Done ***"; 22?> 23--EXPECT-- 24*** Testing strrpos() function: with heredoc strings *** 25-- With heredoc string containing quote & slash chars -- 26int(88) 27int(59) 28int(59) 29int(59) 30*** Done *** 31