PHPÕýÔòÆ¥Åä×Ö·û´®ÖеıêÇ©
Èç¹û±êÇ©ÀïÃæÓÐÖÐÎÄ¡¢Ó¢ÎÄ¡¢Êý×ֵȻìÅÅ£¬ÔòÐèÒª¶Ôºº×Ö½øÐÐÌØÊâ´¦Àí£¬ÓÉÓÚPCRE²»Ö§³Ö\U \P
\LÖ®ÀàµÄperl×Ö·û´®´¦ÀíתÒ壬ʹÓÃ16½øÖÆ»òÕßUnicode½øÐд¦Àí£¬·¶ÀýÈçÏ£º
$str = "Ö®¶þ¿íÀ«µÄ¸Ê¼Ò¿Ú¶«#±êÇ©1#±êÇ©2 #±êÇ©3¡£#±êÇ©4,¶¼·¢$1234 £¤xc,cvm , £¤12,dflksjfÈçºÎ#±êÇ©5.x #tag6.cvxcv¡°"; preg_match_all('/#([a-zA-Z0-9\x7f-\xff]+)/', $str, $mat); print_r($mat); preg_match("/[\x{00a5}\x{ffe5}](\d+)/u", $str, $mat); print_r($mat);
µÃµ½µÄ½á¹ûÈçÏ£º
Array
(
[0] => Array
(
[0] => #±êÇ©1
[1] =>
#±êÇ©2
[2] => #±êÇ©3¡£
[3] => #±êÇ©4
[4] => #±êÇ©5
[5] =>
#tag6
)
[1] => Array
(
[0] => ±êÇ©1
[1] => ±êÇ©2
[2] =>
±êÇ©3¡£
[3] => ±êÇ©4
[4] => ±êÇ©5
[5] => tag6
)
)
Array
(
[0] => £¤12
[1] => 12
)
²¹³ä˵Ã÷£º
Ë«×Ö½Ú×Ö·û±àÂ뷶Χ
1. GBK (GB2312/GB18030)
x00-xff GBKË«×Ö½Ú±àÂ뷶Χ
x20-x7f ASCII
xa1-xff ÖÐÎÄ
gb2312
x80-xff ÖÐÎÄ gbk
2. UTF-8 (Unicode)
u4e00-u9fa5 (ÖÐÎÄ)
x3130-x318F (º«ÎÄ
xAC00-xD7A3 (º«ÎÄ)
u0800-u4e00
(ÈÕÎÄ)
ÍƼöÐÅÏ¢
- ¡¾ÊÓƵ²¥·Å¡¿JplayerÊÓƵ²¥·ÅÆ÷µÄʹÓÃ
- memcacheÄÚ´æÔÀí
- Memcache¼¼Êõ·ÖÏí£º½éÉÜ¡¢Ê¹Óᢴ洢¡¢Ëã·¨¡¢ÓÅ»¯....
- php³£ÓÃÕýÔò±í´ïʽ
- phpÐÔÄܼà²âÄ£¿éXHProf
- ÈÃCI¿ò¼ÜÖ§³Öservice²ã
- ʹÓÃPHPÉú³É´øLOGOµÄ¸öÐÔ»¯¶þάÂëͼÏñ
- ¹ØÓÚCodeIgniterÄã¿ÉÄܲ»ÖªµÀµÄ5¸ö֪ʶµã
- Memcache ºÁÃ뼶³¬Ê±¼°ÆäËû³£¼ûÎÊÌâ»ã×Ü
- [PHP±Ê¼Ç]PHPQueryÒ»¸ö´¦ÀíDOMµÄÀûÆ÷
ÈÈÃÅÐÅÏ¢
- nohup: redirecting stderr to stdou....
- ʹÓÃlog_formatΪNginx·þÎñÆ÷ÉèÖøüÏêϸµÄÈÕÖ¾¸ñʽ
- jquery easyUI--dataGrid-Json
- [Ô´´]·ÂGoogle Reader¡¢ÐÂÀË΢²©¡¢ÌÚѶ΢²©µ....
- ÀûÓÃKeepalived+mysql¹¹½¨¸ß¿ÉÓÃMySQLË«Ö÷×Ô¶....
- Nginx+keepalivedʵÏÖ¸ºÔؾùºâºÍË«»úÈȱ¸¸ß¿ÉÓÃ
- jqueryʵÏÖÒ³Ãæ¼ÓÔؽø¶ÈÌõ
- Rolling cURL: PHP²¢·¢×î¼Ñʵ¼ù
- codeigniter ·ÓÉÖÕ¼«ÓÅ»¯(url rewrite)
- linuxÏÂÉèÖÃsshÎÞÃÜÂëµÇ¼
×î½ü¸üÐÂ
- PHP»ñÈ¡Óû§µÄÕæʵIP£¬²¢ÅжÏÊÇ·ñÄÚÍøIP
- PHP ´íÎóÈÕÖ¾ error_log
- ÀûÓÃbigpipe»úÖÆʵÏÖÒ³ÃæÄ£¿éµÄÒì²½äÖȾ chunked¼¼Êõ
- php¿ØÖÆÎļþÏÂÔØËÙ¶È
- js + php ¶ÁÈ¡¡¢²¥·ÅÊÓƵÁ÷ ¼æÈÝfirefox£¬c....
- ¡¾ÊÓƵ²¥·Å¡¿JplayerÊÓƵ²¥·ÅÆ÷µÄʹÓÃ
- UNICODE Óë UTF-8 µÄ¹Øϵ
- memcacheÄÚ´æÔÀí
- Memcache¼¼Êõ·ÖÏí£º½éÉÜ¡¢Ê¹Óᢴ洢¡¢Ëã·¨¡¢ÓÅ»¯....
- phpʹÓÃmb_detect_encoding¼ì²â×Ö·û´®±àÂë
ÆÀÂÛ