parent
8794b793ea
commit
1301b8ecfc
@ -0,0 +1,18 @@
|
|||||||
|
<?php
|
||||||
|
namespace Verification;
|
||||||
|
|
||||||
|
class Verification
|
||||||
|
{
|
||||||
|
public static function verifChar(string $text) : string{
|
||||||
|
$charInterdi=['&','|','/','\\','%','$'];
|
||||||
|
$textVerif="";
|
||||||
|
foreach( $text as $char){
|
||||||
|
if( !in_array($char,$charInterdi) ){
|
||||||
|
$textVerif=$textVerif+$char;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return $textVerif;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
Loading…
Reference in new issue