note 14341 deleted from function.htmlentities.php by jeroen

From: Date: Sun, 12 Aug 2001 23:28:42 +0000
Subject: note 14341 deleted from function.htmlentities.php by jeroen
Groups: php.notes 
Request: Send a blank email to php-notes+get-16624@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; }

« previous php.notes (#16624) next »