note 94977 added to function.substr

From: Date: Sun, 06 Dec 2009 05:10:12 +0000
Subject: note 94977 added to function.substr
Groups: php.notes 
Request: Send a blank email to php-notes+get-163612@lists.php.net to get a copy of this message
Hello world ;) Doing some work with substr I found something interesting and it may help you. Be careful when using subsrt on a string that you have already used nl2br on. I was able to cut off a string and it broke the <br /> tag, which disrupted the output. ---- Server IP: 69.147.83.197 Probable Submitter: 98.210.216.4 ---- Manual Page -- http://www.php.net/manual/en/function.substr.php Edit -- https://master.php.net/note/edit/94977 Del: integrated -- https://master.php.net/note/delete/94977/integrated Del: useless -- https://master.php.net/note/delete/94977/useless Del: bad code -- https://master.php.net/note/delete/94977/bad+code Del: spam -- https://master.php.net/note/delete/94977/spam Del: non-english -- https://master.php.net/note/delete/94977/non-english Del: in docs -- https://master.php.net/note/delete/94977/in+docs Del: other reasons-- https://master.php.net/note/delete/94977 Reject -- https://master.php.net/note/reject/94977 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#163612) next »