I think this just removes the last slash of $PHP_SELF, including anything
that might be trailing it
strrev reverses $PHP_SELF
srstr returns everything after the first "/" in the reversed string
Strrev reverses the result again
To accomplish this I'd probably rather use something like:
substr($PHP_SELF, 0, strrpos("/")-1)
But that's just how I'd do it...
Piet.
> -----Original Message-----
> From: Bob [mailto:[EMAIL PROTECTED]
> Sent: maandag 19 september 2005 5:29
> To: [email protected]
> Subject: [php-list] Re: Unusual line of code
>
>
> Correction:
> 2 strrev and 1 strstr
>
>
>
> ------------------------ Yahoo! Groups Sponsor
> --------------------~-->
> Fair play? Video games influencing politics. Click and talk
> back! http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/HKFolB/TM
> --------------------------------------------------------------
> ------~->
>
> Community email addresses:
> Post message: [email protected]
> Subscribe: [EMAIL PROTECTED]
> Unsubscribe: [EMAIL PROTECTED]
> List owner: [EMAIL PROTECTED]
>
> Shortcut URL to this page:
> http://groups.yahoo.com/group/php-list
> Yahoo! Groups Links
>
>
>
>
>
>
>
------------------------ Yahoo! Groups Sponsor --------------------~-->
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/HKFolB/TM
--------------------------------------------------------------------~->
Community email addresses:
Post message: [email protected]
Subscribe: [EMAIL PROTECTED]
Unsubscribe: [EMAIL PROTECTED]
List owner: [EMAIL PROTECTED]
Shortcut URL to this page:
http://groups.yahoo.com/group/php-list
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/php-list/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/