Home > php教程 > php手册 > 目录名称合法性检测

目录名称合法性检测

WBOY
Release: 2016-06-13 11:23:15
Original
905 people have browsed it

目录名称合法性检测
//目录名称合法性检测
function isen($str){
$ret="";
for($i=0;$i $p=ord(substr($str,$i,1));
if(($p57 & $p90 & $p122){
nerror("不符合规范!");
}
$ret.=chr($p);
}
return $ret;
}
?>


source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template