/ Published in: PHP
retrieve the name of the parent directory
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function getParentDirName($path = null) { return $dir_path_bits[0]; } else { return $dir_path; } }
function getParentDirName($path = null) { return $dir_path_bits[0]; } else { return $dir_path; } }