Question : how to filter the all special characters in cakephp from an array
Answered by : faithful-ferret-wliylyaxl77o
cleaned = preg_replace("/[^{$allow}a-zA-Z0-9]/", '', $string);
Source : https://stackoverflow.com/questions/9093430/cakephp-sanitizing-and-special-characters | Last Update : Mon, 17 Aug 20