note 69082 added to function.chr

From: Date: Tue, 22 Aug 2006 15:20:04 +0000
Subject: note 69082 added to function.chr
Groups: php.notes 
Request: Send a blank email to php-notes+get-116172@lists.php.net to get a copy of this message
Unicode version of chr() using mbstring <?php function unichr($u) { return mb_convert_encoding(pack("N",$u), mb_internal_encoding(), 'UCS-4BE'); } ?> It returns a string in internal encoding (possibly more than one byte). ---- Server IP: 195.136.184.34 Probable Submitter: 82.210.168.141 ---- 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.chr.php Edit -- https://master.php.net/note/edit/69082 Del: integrated -- https://master.php.net/note/delete/69082/integrated Del: useless -- https://master.php.net/note/delete/69082/useless Del: bad code -- https://master.php.net/note/delete/69082/bad+code Del: spam -- https://master.php.net/note/delete/69082/spam Del: non-english -- https://master.php.net/note/delete/69082/non-english Del: in docs -- https://master.php.net/note/delete/69082/in+docs Del: other reasons-- https://master.php.net/note/delete/69082 Reject -- https://master.php.net/note/reject/69082 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#116172) next »