note 48084 added to function.str-rot13
| From: | Anonymous at osu1 dot php dot net | Date: | Sat, 11 Dec 2004 01:26:29 +0000 |
| Subject: | note 48084 added to function.str-rot13 | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-81668@lists.php.net to get a copy of this message | ||
There is a workaround for the reference problem:
instead of:
<?php
$rot13 = str_rot13($str);
?>
do
<?php
$rot13 = str_rot13($str . "");
?>
In that case str_rot13() won't treat the value as a variable, but more as
"hard-coded" (and won't pass the variable for reference)
----
Manual Page -- http://www.php.net/manual/en/function.str-rot13.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+48084
Delete -- http://master.php.net/manage/user-notes.php?action=delete+48084&report=yes
Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+48084&report=yes&reason=bad+code
Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+48084&report=yes&reason=spam
Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+48084&report=yes&reason=useless+example
Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+48084&report=yes&reason=contains+commercial+links
Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+48084&report=yes&reason=useless+note
Reject -- http://master.php.net/manage/user-notes.php?action=reject+48084&report=yes
Search -- http://master.php.net/manage/user-notes.php