note 49985 deleted from function.utf8-decode by cmb

From: Date: Sun, 11 Dec 2016 11:36:23 +0000
Subject: note 49985 deleted from function.utf8-decode by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-208540@lists.php.net to get a copy of this message
Note Submitter: marcelo at maccoy dot com dot br ---- function decode_utf8($str){ # erase null signs in string $str=eregi_replace("^.{10,13}q\?","",$str); # paterns $pat = "/=([0-9A-F]{2})/"; $cha="'.chr(hexdec("; # to decode with eval and replace eval("\$str='". preg_replace($pat,$cha."'$1')).'",$str). "';"); # return return $str; } Note: It's possible put it in 3 lines, but I don't got in this first code submition.

« previous php.notes (#208540) next »