Bug #1495 Updated: substr gets confused when used with strlen is the best way I can describe it.

From: Date: Sat, 05 Jun 1999 19:55:24 +0000
Subject: Bug #1495 Updated: substr gets confused when used with strlen is the best way I can describe it.
Groups: php.dev 
Request: Send a blank email to php-dev+get-6587@lists.php.net to get a copy of this message
ID: 1495 Updated by: andrey Reported By: richard@vasquez.net Status: Closed Bug Type: Parser error Assigned To: Comments: Your script is wrong. $tmpidx=substr($tmpidx, strlen($tmpidx-3), 3); should be $tmpidx=substr($tmpidx, strlen($tmpidx)-3, 3); Full Bug description available at: http://bugs.php.net/?id=1495

« previous php.dev (#6587) next »