Lines Matching defs:default
44 * filled up with the $default value. If the input string contains more elements, the last
50 * @param mixed $default The value to use when filling up missing elements
54 function sexplode($separator, $string, $limit, $default = null)
56 return array_pad(explode($separator, $string, $limit), $limit, $default);
597 * will strip default parameters to produce even cleaner URLs
638 $more = str_replace('cache=cache', '', $more); //skip default
1043 * @param string $ext extension of file being read, default 'txt'
1486 * The format default to $conf['dformat']. It is passed to
1490 * @param string $format empty default to $conf['dformat'], or provide format as recognized by strftime()
1548 default:
1590 default:
1598 * Wrapper around preg_quote adding the default delimiter
1893 * $valid_values. If not, the function returns a default value or, if no
1894 * default is specified, throws an exception.
1897 * @param array $valid_values A set of valid values; Optionally a default may
1898 * be marked by the key “default”.
1911 } elseif (isset($valid_values['default'])) {
1912 return $valid_values['default'];
1923 * @param mixed $default value returned when preference not found
1926 function get_doku_pref($pref, $default)
1941 return $default;