Quick actions

cmd+k|ctrl+k

Navigation

Languages

test_dirname

Snippet info

Language

Php

Visibility

public

Author

fenghestudio

Created

2019-09-11T05:09:24Z

Updated

2019-09-11T05:09:24Z

<?php

// PHP 4.3.0 以前
dirname('c:/');
 // 返回 '.'
// PHP 4.3.0 以后
dirname('c:/x');
 // 返回 'c:'
dirname('c:/Temp/x');
 // 返回 'c:/Temp'
dirname('/x');
 // 返回 '\'
?>
INFO