Answers for "check string number if has special characters 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

Code answers related to "check string number if has special characters php"

Browse Popular Code Answers by Language