search a string backwards - like reversed stripos

From: Date: Mon, 29 Sep 2003 12:00:40 +0000
Subject: search a string backwards - like reversed stripos
Groups: php.general 
Request: Send a blank email to php-general+get-164232@lists.php.net to get a copy of this message
hello, i am looking for a function that easily searches a sting backwards - just like stripos but reversed. is there already one part of php or does anyone have a nice function written? right now i do it by reversing the sting and using strpos, but this is highly inefficient. any ideas/solutions? thanks, Chris

« previous php.general (#164232) next »