Bookmarks

Yahoo Gmail Google Facebook Delicious Twitter Reddit Stumpleupon Myspace Digg

Search queries

dbf2mysql parameter, WWWXXXAPC, wwwxxxAPC, How to unsubscrube from dategen spam, docmd.close 2585, WWWXXXDOCO, nu vot, dhcpd lease file "binding state", WWWXXXDOCO, how to setup procmail to process html2text

Links

XODOX
Impressum

#1: return utf-8 character value?

Posted on 2008-01-22 01:07:49 by Mandragon03

I need to get the numeric value of a utf-8 character. Is there a way
to do that with php? I have had no luck thus far.

Thanks for your time!

Report this message

#2: Re: return utf-8 character value?

Posted on 2008-01-22 06:57:46 by Tim Roberts

Mandragon03@gmail.com wrote:
>
>I need to get the numeric value of a utf-8 character. Is there a way
>to do that with php? I have had no luck thus far.
>
>Thanks for your time!

What do you mean by "numeric value"? If you want the value of a single
byte of a UTF-8 string, you can use "ord". If you want the Unicode code
point corresponding to one character (which might be several bytes), there
are examples in the contributed sections of the PHP manual page on the
"ord" function:

http://us3.php.net/ord
--
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.

Report this message