[pmwiki-users] php question
noskule
noskule at gmx.net
Wed Feb 6 15:36:05 CST 2008
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
More information about the pmwiki-users
mailing list