Get the App
SLTechnology News&Howtos  ›  Development  › 

How to implement the function of checking the validity of directory name by php

Shulou Source: shulou.com Published: 2022-06-01 04:53:48 10月26日 Update

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!

Tags: Legal legal name catalog testing content article value interest guy partner more knowledge industry information information channel channel reference help Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft Shulou Technology Huawei macOS vpn