Lines Matching refs:default
42 * filled up with the $default value. If the input string contains more elements, the last
48 * @param mixed $default The value to use when filling up missing elements
52 function sexplode($separator, $string, $limit, $default = null)
54 return array_pad(explode($separator, $string, $limit), $limit, $default);
595 * will strip default parameters to produce even cleaner URLs
636 $more = str_replace('cache=cache', '', $more); //skip default
1043 * @param string $ext extension of file being read, default 'txt'
1484 * The format default to $conf['dformat']. It is passed to
1491 * @param string $format empty default to $conf['dformat'], or provide format as recognized by strftime()
1546 default:
1588 default:
1596 * Wrapper around preg_quote adding the default delimiter
1891 * $valid_values. If not, the function returns a default value or, if no
1892 * default is specified, throws an exception.
1895 * @param array $valid_values A set of valid values; Optionally a default may
1896 * be marked by the key “default”.
1909 } elseif (isset($valid_values['default'])) {
1910 return $valid_values['default'];
1921 * @param mixed $default value returned when preference not found
1924 function get_doku_pref($pref, $default)
1939 return $default;