note 110818 deleted from function.phpinfo by danbrown

From: Date: Tue, 11 Dec 2012 19:15:45 +0000
Subject: note 110818 deleted from function.phpinfo by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-192474@lists.php.net to get a copy of this message
Note Submitter: acroterion at gmail dot com ---- All the solutions listed here, did not work for me. So, I wrote an easy-dummy one that works when other code attempts fails: ob_start(); phpinfo(); $pi = ob_get_contents(); ob_end_clean(); $order = array("\r\n", "\n", "\r"); $replace = '<br /><font color="grey"><b>'; // Processes \r\n's first so they aren't converted twice. $newstr = str_replace($order, $replace, $pi); $newstr = str_replace("=>", "=></b></b></font> </font> ", $newstr); echo $newstr;

« previous php.notes (#192474) next »