note 94348 added to function.substr

From: Date: Thu, 29 Oct 2009 18:14:48 +0000
Subject: note 94348 added to function.substr
Groups: php.notes 
Request: Send a blank email to php-notes+get-162260@lists.php.net to get a copy of this message
$foo= '10'; $r= substr($foo, -3); return $r; In php5.2.0 (debian etch) return '10', in php5.2.6 (debian lenny) return '' Maybe the latter is the corrected one... ---- Server IP: 69.147.83.197 Probable Submitter: 151.61.5.6 ---- Manual Page -- http://www.php.net/manual/en/function.substr.php Edit -- https://master.php.net/note/edit/94348 Del: integrated -- https://master.php.net/note/delete/94348/integrated Del: useless -- https://master.php.net/note/delete/94348/useless Del: bad code -- https://master.php.net/note/delete/94348/bad+code Del: spam -- https://master.php.net/note/delete/94348/spam Del: non-english -- https://master.php.net/note/delete/94348/non-english Del: in docs -- https://master.php.net/note/delete/94348/in+docs Del: other reasons-- https://master.php.net/note/delete/94348 Reject -- https://master.php.net/note/reject/94348 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#162260) next »