"Richard Lynch" <[EMAIL PROTECTED]> wrote in message... > > How can I regex to compare the last three chars of a string to "php"? > > if (substr($foo, -3) == 'php'){ > } > > Oh, wait, you wanted to use RegEx. Sorry, can't help you there. :-) > > Don't use a cannon to swat a fly.
probably a good call.. :) -- ======================================================================= Michael J. Ryan - tracker1[*at*]theroughnecks.com Roughneck BBS: http://www.theroughnecks.net telnet://theroughnecks.net ======================================================================= Y!: aztracker1 - aim: azTracker1 - icq: 4935386 - msn: see email One program for aim/icq/yahoo/msn/irc - http://www.trillian.cc/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php