[PHP] find ascii code in string

if (strpos($data ,chr(0x95)) !== false) {
    echo 'true';
}else{
    echo "false";
}

 

posted @ 2015-06-02 22:57  Zhentiw  阅读(196)  评论(0编辑  收藏  举报