How to implement the function of checking the validity of directory name by php
This article mainly introduces php how to achieve directory name legitimacy detection function, the article is very detailed, has a certain reference value, interested friends must read it!
Function for checking the validity of directory names
/ / Directory name legitimacy check function isen ($str) {$ret= ""; for ($ionomo role checking I $p=ord (substr ($str,$i,1)); if (($p57 & $P90 & $p122) {nerror ("does not conform to the specification!");} $ret.=chr ($p);} return $ret;}? > above is all the content of the article "how php implements the directory name validity detection function". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!