Cómo filtrar todos los caracteres especiales en CakePhp de una matriz

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