Re: take links from url
| From: | Matt Moreton | Date: | Sun, 06 Jan 2002 20:22:47 +0000 |
| Subject: | Re: take links from url | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-79620@lists.php.net to get a copy of this message | ||
You could use the following preg statement:
preg_match_all( "/<table>(.*(?=<\/table>))/", $string, $output,
PREG_SET_ORDER );
This would put all matches of <table>some code, text, whatever</table> into
the $output array. however you would start to have problems when you come
across nested tables. You'd need something to count how deep your nested if
you have nested table containers.
Regards
Matt.
----- Original Message -----
From: "Alawi" <alawi@php4web.com>
To: <php-general@lists.php.net>
Sent: Sunday, January 06, 2002 7:47 AM
Subject: [PHP] take links from url
I want to take string between <table></table> tags in put it
in variable
How can I do that ?