hi list
what is the best way to say in php: Remove everything after the last
slash (including the slash)

I need this for a backlink in the wikigallerys image view.
    Group/Name/Imagename -> Group/Name


I would like to use a markup expression:

$MarkupExpr['WGImagePage'] = 'ExtractWikiGalleryImagePage($args[0])';

function ExtractWikiGalleryImagePage($gallerypicture) {
        $out = "REMOVE EVERYTHING BEHIND THE LAST SLASH"
        return  $out;
        }

thanks for any hints
nos

_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Reply via email to