note 73420 added to function.substr

From: Date: Thu, 22 Feb 2007 15:26:47 +0000
Subject: note 73420 added to function.substr
Groups: php.notes 
Request: Send a blank email to php-notes+get-123714@lists.php.net to get a copy of this message
Taking the empty substring at the end of a string DOES NOT produce the empty string, as expected. It produces boolean false. <? $foo = substr("foo", 3); var_dump($foo); ?> This gives false, not ''. ---- Server IP: 82.103.133.188 Probable Submitter: 86.52.12.238 ---- Manual Page -- http://www.php.net/manual/en/function.substr.php Edit -- https://master.php.net/note/edit/73420 Del: integrated -- https://master.php.net/note/delete/73420/integrated Del: useless -- https://master.php.net/note/delete/73420/useless Del: bad code -- https://master.php.net/note/delete/73420/bad+code Del: spam -- https://master.php.net/note/delete/73420/spam Del: non-english -- https://master.php.net/note/delete/73420/non-english Del: in docs -- https://master.php.net/note/delete/73420/in+docs Del: other reasons-- https://master.php.net/note/delete/73420 Reject -- https://master.php.net/note/reject/73420 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#123714) next »