Lines Matching defs:path
15 * @param string $path A path
22 public static function basename($path, $suffix = '')
24 $path = trim($path, '\\/');
25 $rpos = max(strrpos($path, '/'), strrpos($path, '\\'));
27 $path = substr($path, $rpos + 1);
31 if ($suflen && str_ends_with($path, $suffix)) {
32 $path = substr($path, 0, -$suflen);
35 return $path;