Cara memfilter semua karakter khusus di CakePhp dari array

cleaned = preg_replace("/[^{$allow}a-zA-Z0-9]/", '', $string);
Faithful Ferret