Thanks guys! I used call_user_func() together with is_callable() and it worked flawlessly! I'll be posting the result of that shortly.
Something like this...decided to tinker a bit since I'm on a kinda long break :)I assumed $dirtyData is a string...modify it as you see fit
<?php$myString = "strip_tags|trim|myFunction";function str2Function($str,$dirtyData) {$str = explode('|',$str);$fn = '';for($i = count($str); $i >= 0; $i--) {if(strlen(trim($str[$i])) > 1) {$arg = '';if($i == count($str) - 1) {$arg = '"'.$dirtyData.'"';} else {$arg = $fn;}$fn = $str[$i].'('.$arg.')';}}//echo $fn;return eval($fn);}$cleanData = str2Function($myString,$dirtyData);?>
_______________________________________________
Skunkworks mailing list
Skunkworks@lists.my.co.ke
http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks
------------
Skunkworks Rules
http://my.co.ke/phpbb/viewtopic.php?f=24&t=94
------------
Other services @ http://my.co.ke