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
[EMAIL PROTECTED]

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to