Jump to content

Special Characters Function


The Little Guy

Recommended Posts

Is there a function that can search for these types of characters:

 

上海帕特是水泵和阀门的专业的生产商。其产å“é€šè¿‡ä¸æ–­çš„æŠ€æœ¯æ”¹è¿›å’Œæ›´æ–°æ¢ä»£ï¼Œäº§å“如下:
Link to comment
https://forums.phpfreaks.com/topic/130891-special-characters-function/
Share on other sites

There is no specific one that does that but you can use preg or ereg and you can make it evaluate the variable and it will let you know true or false if there are any special characters in there.

 

Actually, ereg() can't be used on binary data.  Go with preg_match().

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.