note 39195 added to function.str-replace

From: Date: Tue, 20 Jan 2004 13:37:45 +0000
Subject: note 39195 added to function.str-replace
Groups: php.notes 
Request: Send a blank email to php-notes+get-63874@lists.php.net to get a copy of this message
a very simple way to: 1. export data form database. 2. add <br>. 3. add tabs. $content=$sql_output["content"]; $content=htmlspecialchars($content, ENT_QUOTES); $content=str_replace("\r\n", "<br>", $content); $content=str_replace("\t", "<img src=img/space.gif width=30 height=1>", $content); space.gif is a blank, 1 width, 1 height block just to create space.. ---- Manual Page -- http://www.php.net/manual/en/function.str-replace.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+39195 Delete -- http://master.php.net/manage/user-notes.php?action=delete+39195&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+39195&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#63874) next »