RE: [PHP] strrpos(), bug?
| From: | Jaime Bozza | Date: | Wed, 16 Apr 2003 18:01:12 +0000 |
| Subject: | RE: [PHP] strrpos(), bug? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-144160@lists.php.net to get a copy of this message | ||
> Is strrpos() buggy or is it just me?
> I have a string containing of HTML-code.
> I want to strip everything before the last <table>.
strrpos() doesn't search for a string within a string. It searches for a
character. Check the documentation:
http://www.php.net/manual/en/function.strrpos.php
The manual page has a couple of comments for a function to do what you're
looking for.
Jaime Bozza