note 63558 added to function.convert-cyr-string

From: Date: Thu, 23 Mar 2006 20:15:13 +0000
Subject: note 63558 added to function.convert-cyr-string
Groups: php.notes 
Request: Send a blank email to php-notes+get-106488@lists.php.net to get a copy of this message
Sorry for my previous post. NOT array_reverce, array_flip is actual function. Correct function: function Encode($str,$type=u) { $conv=array(); for($x=192;$x<=239;$x++) $conv[u][chr($x)]=chr(208).chr($x-48); for($x=240;$x<=255;$x++) $conv[u][chr($x)]=chr(209).chr($x-112); $conv[u][chr(168)]=chr(208).chr(129); $conv[u][chr(184)]=chr(209).chr(209); $conv[w]=array_flip($conv[u]); if($type=='w' || $type=='u') return strtr($str,$conv[$type]); else return $str; } Sorry for my English ;) ---- Server IP: 66.163.161.117 Probable Submitter: 82.211.152.12 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.convert-cyr-string.php Edit -- http://master.php.net/note/edit/63558 Del: integrated -- http://master.php.net/note/delete/63558/integrated Del: useless -- http://master.php.net/note/delete/63558/useless Del: bad code -- http://master.php.net/note/delete/63558/bad+code Del: spam -- http://master.php.net/note/delete/63558/spam Del: non-english -- http://master.php.net/note/delete/63558/non-english Del: in docs -- http://master.php.net/note/delete/63558/in+docs Del: other reasons-- http://master.php.net/note/delete/63558 Reject -- http://master.php.net/note/reject/63558 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#106488) next »