ң

pathinfo

(PHP 4 >= 4.0.3)

pathinfo - .

array pathinfo (string path)

pathinfo() , path . : dirname , basename extension .

1. pathinfo()
<?php $path_parts = pathinfo("/www/htdocs/index.html"); echo $path_parts["dirname"] . "\n"; echo $path_parts["basename"] . "\n"; echo $path_parts["extension"] . "\n"; ?>

:

/www/htdocs index.html html

. dirname() , basename() , parse_url() realpath() .


ң
parse_ini_file pclose