1--TEST-- 2Test stripos() function : usage variations - heredoc string containing quotes for 'haystack' argument 3--FILE-- 4<?php 5/* Test stripos() function by passing heredoc string containing quotes for haystack 6 * and with various needles & offsets 7*/ 8 9echo "*** Testing stripos() 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( stripos($quote_char_str, "line") ); 18var_dump( stripos($quote_char_str, 'things') ); 19var_dump( stripos($quote_char_str, 'things', 0) ); 20var_dump( stripos($quote_char_str, "things", 20) ); 21echo "*** Done ***"; 22?> 23--EXPECT-- 24*** Testing stripos() function: with heredoc strings *** 25-- With heredoc string containing quote & slash chars -- 26int(88) 27int(34) 28int(34) 29int(34) 30*** Done *** 31