开发者

Stripping high/low ascii

开发者 https://www.devze.com 2023-02-23 01:40 出处:网络
What would something like this do? function strip_high_low_ascii($string) { return filter_var($string, FILTER_SANITIZE_STRING,

What would something like this do?

function strip_high_low_ascii($string)
{
   return filter_var($string, FILTER_SANITIZE_STRING,
                              array('flags' => FILTER_FLAG_STRIP_HIGH|FILTER_FLAG_STRIP_LOW ))开发者_运维百科;
}

It doesn't seem to work for me.


It strips any characters from the input string that are either lower than 32 ordinal, or higher than 127. Here is an ASCII reference table to show you which characters are between those values:

http://www.asciitable.com/

0

精彩评论

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

关注公众号