note 39462 added to function.strtr

From: Date: Thu, 29 Jan 2004 12:26:54 +0000
Subject: note 39462 added to function.strtr
Groups: php.notes 
Request: Send a blank email to php-notes+get-64368@lists.php.net to get a copy of this message
This is a handy and simple code to change hard returns from your SQL database to HTML-returns: $addreturns = array ("\n" => '<br>'); $withreturns = strtr($row[0], $addreturns) . "\n"; ---- Manual Page -- http://www.php.net/manual/en/function.strtr.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+39462 Delete -- http://master.php.net/manage/user-notes.php?action=delete+39462&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+39462&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#64368) next »