You could use the following preg statement:

preg_match_all( "/<table>(.*(?=<\/table>))/", $string, $output,

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.



----- Original Message -----
From: "Alawi" <[EMAIL PROTECTED]>
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 ?

PHP General Mailing List (
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to