From 1ca5703b686259a1c22348a49dfd4856438795ce Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Thu, 16 Feb 2017 11:35:07 -0500 Subject: [PATCH] grab common_fns --- common_fns.php | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100755 common_fns.php diff --git a/common_fns.php b/common_fns.php new file mode 100755 index 0000000..a255651 --- /dev/null +++ b/common_fns.php @@ -0,0 +1,27 @@ + $val){ + if(is_array($val)){ + // if menu + $ret .= ''; + } + else{ + $ret .= '
  • '.$name.'
  • '; + } + } + return $ret; +} + +function pprint($obj, $desc = ""){ + echo "
    Debug dump: $desc ";
    +    print_r($obj);
    +    echo '
    '; +} + +function ifsetor(&$check, $alternate = NULL){ + return (isset($check)) ? $check : $alternate; +}