]> dev.renevier.net Git - syp.git/blobdiff - inc/utils.php
UTF-8 safe version of basename
[syp.git] / inc / utils.php
index 04aeff9817cc424dc83b4060082e39bbfbbfc027..cee9d9a2a2d7e26650f144e351a214366f7396fc 100644 (file)
@@ -14,6 +14,10 @@ function gethost() {
     return $host;
 }
 
+function basename_safe ($path) {
+    return end (explode ("/", $path)); 
+}
+
 function unquote($gpc_str) {
    if (!isset ($gpc_str)) {
        return $gpc_str;