Lines Matching defs:default
45 * filled up with the $default value. If the input string contains more elements, the last
51 * @param mixed $default The value to use when filling up missing elements
55 function sexplode($separator, $string, $limit, $default = null)
57 return array_pad(explode($separator, $string, $limit), $limit, $default);
589 * will strip default parameters to produce even cleaner URLs
630 $more = str_replace('cache=cache', '', $more); //skip default
1009 * @param string $ext extension of file being read, default 'txt'
1452 * The format default to $conf['dformat']. It is passed to
1456 * @param string $format empty default to $conf['dformat'], or provide format as recognized by strftime()
1514 default:
1556 default:
1564 * Wrapper around preg_quote adding the default delimiter
1859 * $valid_values. If not, the function returns a default value or, if no
1860 * default is specified, throws an exception.
1863 * @param array $valid_values A set of valid values; Optionally a default may
1864 * be marked by the key “default”.
1877 } elseif (isset($valid_values['default'])) {
1878 return $valid_values['default'];
1889 * @param mixed $default value returned when preference not found
1892 function get_doku_pref($pref, $default)
1907 return $default;