/ Published in: PHP
retrieve the name of the parent directory
Expand |
Embed | Plain Text
function getParentDirName($path = null) { return $dir_path_bits[0]; } else { return $dir_path; } }
You need to login to post a comment.
