note 109724 added to function.ord

From: Date: Tue, 14 Aug 2012 12:56:15 +0000
Subject: note 109724 added to function.ord
Groups: php.notes 
Request: Send a blank email to php-notes+get-190066@lists.php.net to get a copy of this message
Since this function is not utf-8/unicode ready, you can use following code to get the hex or dec representation of a character. <?php mb_internal_encoding("UTF-8"); $string = '↗Զ'; $char = mb_substr($string, 0, 1); var_dump(bin2hex($char)); //hex var_dump(hexdec(bin2hex($char))); //decimal ?> returns: string(6) "e28697" int(14845591) countercheck: http://www.utf8-chartable.de/unicode-utf8-table.pl?start=8592 ---- Server IP: 69.147.83.197 Probable Submitter: 217.91.154.160 ---- Manual Page -- http://www.php.net/manual/en/function.ord.php Edit -- https://master.php.net/note/edit/109724 Del: integrated -- https://master.php.net/note/delete/109724/integrated Del: useless -- https://master.php.net/note/delete/109724/useless Del: bad code -- https://master.php.net/note/delete/109724/bad+code Del: spam -- https://master.php.net/note/delete/109724/spam Del: non-english -- https://master.php.net/note/delete/109724/non-english Del: in docs -- https://master.php.net/note/delete/109724/in+docs Del: other reasons-- https://master.php.net/note/delete/109724 Reject -- https://master.php.net/note/reject/109724 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#190066) next »