What is the difference between following functions?
Does these both functions perform same task?
$wh_ope=clean($_POST['whop'])?(int)$_POST['whop'] : 0;
$wh_ope=(int)clean($_POST['whop']);
function clean($str)
{
$cstr=trim($str);
$cstr=addslashes($str);
$cstr=strip_tags($str);
$cstr=htmlspecialchars($str);
return $cstr;
}