note 109264 added to function.html-entity-decode

From: Date: Sun, 01 Jul 2012 04:58:42 +0000
Subject: note 109264 added to function.html-entity-decode
Groups: php.notes 
Request: Send a blank email to php-notes+get-188984@lists.php.net to get a copy of this message
Spend some minutes with function by "neurotic dot neu at gmail dot com"'s and here is an improved version, shorter some times, and all function is a single row of returning. <?php function rawurldecode($raw_url_encoded) { return utf8_encode(utf8_decode($enc = rawurldecode($raw_url_encoded)))==$enc ? rawurldecode($raw_url_encoded) : utf8_encode(rawurldecode($raw_url_encoded)); } ?> goood luck! ---- Server IP: 195.54.192.44 Probable Submitter: 95.221.36.250 ---- Manual Page -- http://www.php.net/manual/en/function.html-entity-decode.php Edit -- https://master.php.net/note/edit/109264 Del: integrated -- https://master.php.net/note/delete/109264/integrated Del: useless -- https://master.php.net/note/delete/109264/useless Del: bad code -- https://master.php.net/note/delete/109264/bad+code Del: spam -- https://master.php.net/note/delete/109264/spam Del: non-english -- https://master.php.net/note/delete/109264/non-english Del: in docs -- https://master.php.net/note/delete/109264/in+docs Del: other reasons-- https://master.php.net/note/delete/109264 Reject -- https://master.php.net/note/reject/109264 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#188984) next »