return utf-8 character value?

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
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!

Re: return utf-8 character value? wrote:
Quoted text here. Click to load it

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:
Tim Roberts,
Providenza & Boekelheide, Inc.

Site Timeline