![]() ![]() | ![]() |
1.1 ! misho 1: --TEST-- ! 2: strrev() function ! 3: --FILE-- ! 4: <?php ! 5: $i = 0; ! 6: $str = ''; ! 7: ! 8: while ($i<256) { ! 9: $str .= chr($i++); ! 10: } ! 11: ! 12: var_dump(md5(strrev($str))); ! 13: var_dump(strrev(NULL)); ! 14: var_dump(strrev("")); ! 15: ?> ! 16: --EXPECT-- ! 17: string(32) "ec6df70f2569891eae50321a9179eb82" ! 18: string(0) "" ! 19: string(0) ""