note 74778 added to function.substr

From: Date: Fri, 27 Apr 2007 04:46:24 +0000
Subject: note 74778 added to function.substr
Groups: php.notes 
Request: Send a blank email to php-notes+get-125907@lists.php.net to get a copy of this message
In answer to legolas558 d0t users dot sf dot net He might have put an april fool here. his post is in many cases wrong. His example would neither return false or and empty string, because the substring number argument is shorter than the whole string. the correct return is (php 5.2.x) <?php string(1) "r" ?> Better delete his post. ---- Server IP: 217.160.72.57 Probable Submitter: 213.191.39.126 ---- Manual Page -- http://www.php.net/manual/en/function.substr.php Edit -- https://master.php.net/note/edit/74778 Del: integrated -- https://master.php.net/note/delete/74778/integrated Del: useless -- https://master.php.net/note/delete/74778/useless Del: bad code -- https://master.php.net/note/delete/74778/bad+code Del: spam -- https://master.php.net/note/delete/74778/spam Del: non-english -- https://master.php.net/note/delete/74778/non-english Del: in docs -- https://master.php.net/note/delete/74778/in+docs Del: other reasons-- https://master.php.net/note/delete/74778 Reject -- https://master.php.net/note/reject/74778 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#125907) next »