1--TEST--
2Test strrchr() function : usage variations - heredoc string containing blank line for 'haystack'
3--FILE--
4<?php
5/* Test strrchr() function by passing heredoc string containing
6 *  blank-line for haystack and with various needles
7*/
8
9echo "*** Testing strrchr() function: with heredoc strings ***\n";
10$blank_line = <<<EOD
11
12EOD;
13
14$needles = array(
15  "\n",
16  '\n',
17  "\r",
18  "\r\n",
19  "\t",
20  "",
21  $blank_line //needle as haystack
22);
23
24//loop through to test strrchr() with each needle
25foreach($needles as $needle) {
26  var_dump( strrchr($blank_line, $needle) );
27}
28echo "*** Done ***";
29?>
30--EXPECT--
31*** Testing strrchr() function: with heredoc strings ***
32bool(false)
33bool(false)
34bool(false)
35bool(false)
36bool(false)
37bool(false)
38bool(false)
39*** Done ***
40