note 48084 deleted from function.str-rot13 by nlopess
| From: | nlopess@php.net | Date: | Fri, 17 Mar 2006 17:33:22 +0000 |
| Subject: | note 48084 deleted from function.str-rot13 by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-105996@lists.php.net to get a copy of this message | ||
Note Submitter: Anonymous
----
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)