matching a word to end of string with strpos

Posted by clover on Stack Overflow See other posts from Stack Overflow or by clover
Published on 2010-03-27T05:50:47Z Indexed on 2010/03/27 5:53 UTC
Read the original article Hit count: 264

Filed under:
|
|

I'm trying to match a word in a string to see if it occurs at the end of that string. The usual strpos($theString, $theWord); wouldn't do that.

What would be the most efficient way to do it?

© Stack Overflow or respective owner

Related posts about php

Related posts about string