You are here: Re: return utf-8 character value? « PHP Programming Language « IT news, forums, messages
Re: return utf-8 character value?

Posted by Tim Roberts on 01/22/08 05:57

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.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация