note 88611 added to function.chr

From: Date: Sat, 31 Jan 2009 15:39:13 +0000
Subject: note 88611 added to function.chr
Groups: php.notes 
Request: Send a blank email to php-notes+get-150034@lists.php.net to get a copy of this message
Another quick and short function to get unicode char by its code. <?php /** * Return unicode char by its code * * @param int $u * @return char */ function unichr($u) { return mb_convert_encoding('&#' . intval($u) . ';', 'UTF-8', 'HTML-ENTITIES'); } ?> ---- Server IP: 78.41.104.32 Probable Submitter: 88.210.53.225 ---- Manual Page -- http://www.php.net/manual/en/function.chr.php Edit -- https://master.php.net/note/edit/88611 Del: integrated -- https://master.php.net/note/delete/88611/integrated Del: useless -- https://master.php.net/note/delete/88611/useless Del: bad code -- https://master.php.net/note/delete/88611/bad+code Del: spam -- https://master.php.net/note/delete/88611/spam Del: non-english -- https://master.php.net/note/delete/88611/non-english Del: in docs -- https://master.php.net/note/delete/88611/in+docs Del: other reasons-- https://master.php.net/note/delete/88611 Reject -- https://master.php.net/note/reject/88611 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#150034) next »