note 106658 added to function.nl2br

From: Date: Fri, 25 Nov 2011 06:11:21 +0000
Subject: note 106658 added to function.nl2br
Groups: php.notes 
Request: Send a blank email to php-notes+get-184671@lists.php.net to get a copy of this message
//Following code will helps you to replace all the \r and \n present in your piece of code. // string to be converted $specimen = "Jack \ris a\r\n good \nboy"; echo str_replace('\n','', str_replace('\r','',$specimen) ); //output Jack is a good boy ---- Server IP: 69.147.83.197 Probable Submitter: 115.119.79.138 ---- Manual Page -- http://www.php.net/manual/en/function.nl2br.php Edit -- https://master.php.net/note/edit/106658 Del: integrated -- https://master.php.net/note/delete/106658/integrated Del: useless -- https://master.php.net/note/delete/106658/useless Del: bad code -- https://master.php.net/note/delete/106658/bad+code Del: spam -- https://master.php.net/note/delete/106658/spam Del: non-english -- https://master.php.net/note/delete/106658/non-english Del: in docs -- https://master.php.net/note/delete/106658/in+docs Del: other reasons-- https://master.php.net/note/delete/106658 Reject -- https://master.php.net/note/reject/106658 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#184671) next »