I want to do something like

$value = update_text($value)

function text_process($value){
$value = trim(strip_tags($value));
$value = addslashes($value);
$value = htmlspecialchars($value);
}

Do I need to return $value in order to have it available to the code that calls the function or is it already loaded into the calling value "$value ="