On Wed, Feb 06, 2008 at 10:36:05PM +0100, noskule wrote: > hi list > what is the best way to say in php: Remove everything after the last > slash (including the slash)
$x = preg_replace('!/[^/]*$!', '', $x);
If there's no last slash, nothing gets removed.
Pm
_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users
