It looks like you're new here. If you want to get involved, click one of these buttons!
function is_safe_character($val, $allowed= array('_', '-'))
{
$newVal = str_replace($allowed, '', $val);
if(ctype_alnum($newVal) || empty($newVal))
{
return TRUE;
}
return FALSE;
}
Comments