<?php class cleanTask { function run() { foreach($_POST as $key=>$data) { if(!is_array($data)) $_POST[$key] = stripslashes($data); } } } ?>