note 2878 deleted from strrev by ronabop

From: Date: Fri, 06 Oct 2000 14:41:38 +0000
Subject: note 2878 deleted from strrev by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-6167@lists.php.net to get a copy of this message
Look out, folks: the PHP4b3 implementation does an internal call by reference, so that your parameter value also changes to the evaluated reversed string: <PRE> $org = "1234"; $rev = strrev($org); </PRE> results in: <PRE> $org == $rev == "4321"; </PRE> Thanks to Thies, who just fixed it!

« previous php.notes (#6167) next »