parent
1301b8ecfc
commit
4a4f204cb3
@ -1,18 +0,0 @@
|
||||
<?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;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
@ -0,0 +1,19 @@
|
||||
<?php
|
||||
namespace Verification{
|
||||
|
||||
class VerificationChar
|
||||
{
|
||||
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