|
I recently ran into something where I needed to use a string to search, in PHP 4, instead of character. Basically, I just reversed the string, then did strpos. Here's a snippet:
//PHP 4 doesn't support multiple characters in strrpos(), so we must find positions based on strrev()
trim(strip_tags(substr($line, (strlen($line) - strpos(strrev($line), strrev("<TD >"))))))
|