note 38583 added to function.str-rot13
| From: | Vincent at rn2 dot php dot net | Date: | Sun, 28 Dec 2003 16:58:14 +0000 |
| Subject: | note 38583 added to function.str-rot13 | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-62612@lists.php.net to get a copy of this message | ||
Here is a easy away to overcome the bug of str_rot13():
<?php
$str = 'abc';
$str2 = str_rot13($str . ''); // pass a string
echo $str; // Will print "abc" instead of "nop"
?>
----
Manual Page -- http://www.php.net/manual/en/function.str-rot13.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+38583
Delete -- http://master.php.net/manage/user-notes.php?action=delete+38583&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+38583&report=yes
Search -- http://master.php.net/manage/user-notes.php