On Wed, Jul 11, 2012 at 11:45 AM, Marc Guay <marc.guay@xxxxxxxxx> wrote: > Answered it myself (funny how writing out a problem as descriptively > as possible makes the brain work better). > > $end_of_url = substr("http://domain.com/about/page/subpage/", > strlen("/about/page/") * -1); > $same_post = ($end_of_url == "/about/page/"); or regex: ':/about/page/:$' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php