public static function quote($val = "", $q = "\"")
    {
        if (is_string($val)) {
            return $q . $val . $q;
        } elseif (is_numeric($val)) {
            return $val;
        } elseif (is_array($val)) {
            return "StringUtils::quote returned 'array'! ";
        } else {
            return $q . $val . $q;
        }
    }
public static function quote($val = "", $q = "\"")
    {
        if (is_string($val)) {
            return $q . $val . $q;
        } elseif (is_numeric($val)) {
            return $val;
        } elseif (is_array($val)) {
            return "StringUtils::quote returned 'array'! ";
        } else {
            return $q . $val . $q;
        }
    }
public static function quote ( $ val = "" , $ q = "\"" ) { if ( is_string ( $ val ) ) { return $ q . $ val . $ q ; } elseif ( is_numeric ( $ val ) ) { return $ val ; } elseif ( is_array ( $ val ) ) { return "StringUtils::quote returned 'array'! " ; } else { return $ q . $ val . $ q ; } }
Encloses and input string with double quotes.
@param  string $val
@param  string $q
@return string
Encloses and input string with double quotes .