开发者

How to convert characters to something like '\x{ff41}' in PHP?

开发者 https://www.devze.com 2022-12-29 17:45 出处:网络
I see some data format like \\x{ff41} in my regex patterns. I开发者_如何学Go know how to use it via some examples butdon\'t know what itmeans in PHP.And now I need to figure out whether a character is

I see some data format like \x{ff41} in my regex patterns. I开发者_如何学Go know how to use it via some examples but don't know what it means in PHP.And now I need to figure out whether a character is included by a sequence with range like \x{FF10}-\x{FF19} .Help would be highly appreciated!


These are Unicode-Characters (you're probably using the /u parameter). If you want to look up which symbol your "code" stands for, you can use http://unicode.org/charts/ (there is an input-field on the top).

You'll find the information you need on this particular example in http://www.unicode.org/charts/PDF/UFF00.pdf


i hope the URl will show you a better way.

http://www.webcheatsheet.com/php/regular_expressions.php
http://php.net/manual/en/book.pcre.php
http://www.regular-expressions.info/php.html
0

精彩评论

暂无评论...
验证码 换一张
取 消