Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

determine special characters in php

<?php

$string = 'foo';

if (preg_match('/['^£$%&*()}{@#~?><>,|=_+¬-]/', $string))
{
    // one or more of the 'special characters' found in $string
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #determine #special #characters #php
ADD COMMENT
Topic
Name
1+4 =