<?php $string = 'foo'; if (preg_match('/['^£$%&*()}{@#~?><>,|=_+¬-]/', $string)) { // one or more of the 'special characters' found in $string }