Posted by John Nichel on 10/21/54 11:05
Bruno B B Magalhães wrote:
> Hi people,
>
> how to determine if the last char of a string is a '/'...
>
> The problem, a webpage can be accessed by www.domain.com/page.php or
> www.domain.com/page.php/
preg_match ( "/\/$/", $string );
--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
john@kegworks.com
[Back to original message]
|