try basename('');


Charles Wiltgen wrote:
> Hello,
> I just want to get the "index" part of "
> index.html".
> I'm trying to figure out this regex stuff, but it hasn't yet clicked.
> Here's my best guess:
>     ereg('?/(*)\.html$', $source, $dest);
> To me -- and please be gentle -- this means, "Starting with the forward
> slash closest to the end of $source, capture whatever comes after it and
> before '.html', and put it in $dest."  Obviously not correct, but I've spent
> an embarrassing amount of time feel stupid.  Help?
> -- Charles Wiltgen

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to