Re: Checking if

From: Date: Tue, 11 Jan 2005 19:47:34 +0000
Subject: Re: Checking if
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-206105@lists.php.net to get a copy of this message
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

« previous php.general (#206105) next »