note 53637 added to function.str-replace

From: Date: Tue, 07 Jun 2005 23:14:10 +0000
Subject: note 53637 added to function.str-replace
Groups: php.notes 
Request: Send a blank email to php-notes+get-90090@lists.php.net to get a copy of this message
to 'format' text area inputs (if you're making a forum or something like that) would be done like: $message=str_replace("\r\n", '<br>', $message); $message=str_replace(' ', '&nbsp', $message); or something like that. (i think someone was wondering how to do the spacings that are actually inputted when the user writes something in the text area) ---- Manual Page -- http://www.php.net/manual/en/function.str-replace.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+53637 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+53637&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+53637&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+53637&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+53637&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+53637&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+53637&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#90090) next »