ң

basename

(PHP 3, PHP 4)

basename - filename .

string basename (string path [, string suffix])

, , . suffix , .

Windows (/), (\) -. (/).

1. basename()
$path = "/home/httpd/html/index.php"; $file = basename ($path); // $file "index.php" $file = basename ($path,".php"); // $file "index"

: suffix ģ PHP 4.1.0.

. dirname().


ң
chgrp