Re: [PHP] Re: Find match of string if only at end of string

2012-07-11 Thread ma...@behnke.biz
tamouse mailing lists hat am 11. Juli 2012 um 19:13 geschrieben: > On Wed, Jul 11, 2012 at 11:45 AM, Marc Guay 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/pa

Re: [PHP] Re: Find match of string if only at end of string

2012-07-11 Thread tamouse mailing lists
On Wed, Jul 11, 2012 at 11:45 AM, Marc Guay 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 == "/