Answers for "special char finder in php"

PHP
0

determine special characters in php

<?php

$string = 'foo';

if (preg_match('/[\'^£$%&*()}{@#~?><>,|=_+¬-]/', $string))
{
    // one or more of the 'special characters' found in $string
}
Posted by: Guest on October-13-2020

Browse Popular Code Answers by Language