1--TEST-- 2Test strrev() function : basic functionality 3--FILE-- 4<?php 5echo "*** Testing strrev() : basic functionality ***\n"; 6$heredoc = <<<EOD 7Hello, world 8EOD; 9 10//regular string 11var_dump( strrev("Hello, World") ); 12var_dump( strrev('Hello, World') ); 13 14//single character 15var_dump( strrev("H") ); 16var_dump( strrev('H') ); 17 18//string containing simalr chars 19var_dump( strrev("HHHHHH") ); 20var_dump( strrev("HhhhhH") ); 21 22//string containing escape char 23var_dump( strrev("Hello, World\n") ); 24var_dump( strrev('Hello, World\n') ); 25 26//heredoc string 27var_dump( strrev($heredoc) ); 28echo "*** Done ***"; 29?> 30--EXPECT-- 31*** Testing strrev() : basic functionality *** 32string(12) "dlroW ,olleH" 33string(12) "dlroW ,olleH" 34string(1) "H" 35string(1) "H" 36string(6) "HHHHHH" 37string(6) "HhhhhH" 38string(13) " 39dlroW ,olleH" 40string(14) "n\dlroW ,olleH" 41string(12) "dlrow ,olleH" 42*** Done *** 43