note 26276 added to function.str-rot13

From: Date: Thu, 24 Oct 2002 18:03:12 +0000
Subject: note 26276 added to function.str-rot13
Groups: php.notes 
Request: Send a blank email to php-notes+get-38516@lists.php.net to get a copy of this message
When passing a variable to str_rot13() it doesn't only return the rot13 transform of that variable, it also stores the resulting string back into the variable: <?php $testvar = "abc"; $testvar2 = str_rot13($testvar); echo $testvar; // will show "nop" ?> I don't know if it's just me, but I found that very odd. Version is 4.2.3 -- http://www.php.net/manual/en/function.str-rot13.php http://master.php.net/manage/user-notes.php?action=edit+26276 http://master.php.net/manage/user-notes.php?action=delete+26276 http://master.php.net/manage/user-notes.php?action=reject+26276

« previous php.notes (#38516) next »