note 14341 modified in function.htmlentities.php by jeroen

From: Date: Sun, 12 Aug 2001 23:27:48 +0000
Subject: note 14341 modified in function.htmlentities.php by jeroen
Groups: php.notes 
Request: Send a blank email to php-notes+get-16622@lists.php.net to get a copy of this message
To convert more characters to their equivalents, just use this: function print_processor($value) { $whats_coming_out = array("]","[","!","\"","$","%", "'","(",")","{","}","-",";","\\", "/","<",">","*","+",".",":","_", "=","^","\,","|"," ","?"); $whats_going_in = array("]","[","!",""","$","%","'" ,"(",")","{","}","-" ,";","\","/","<",">","*", "+",".",":","_","=","^","‚","|"," ","?"); for ($i=0;$i<count($whats_coming_out);$i++) { $value = str_replace ($whats_coming_out[$i], $whats_going_in[$i], $value); } return $value; } http://www.php.net/manual/en/function.htmlentities.php.php

« previous php.notes (#16622) next »