function getserval val if isset _SERVER val _SERVER val return else re

1
function getserval($val) { if ( !isset($_SERVER[$val]) || $_SERVER[$val] == "" ) { return "-"; } else { return $_SERVER[$val]; } }