HI all,
I'm using $content = str_ireplace($s earch, $replace, $var3); to search and replace value in $var3.
My problem is i want to take out all the table attribute found in $var3.
For example
I only want to echo the link content without the table structure at all.
Is there any pattern to search all the table attribute and replace with null value?
I got a long string from database to remove the table structure, very appreciate your kind help. Thanks in advance.
Regards,myza.
I'm using $content = str_ireplace($s earch, $replace, $var3); to search and replace value in $var3.
My problem is i want to take out all the table attribute found in $var3.
For example
Code:
<table with="100" height=""><tr><td class="cont" style="hsd"> <a href="test.php">content</a> </td></tr></table>
Is there any pattern to search all the table attribute and replace with null value?
I got a long string from database to remove the table structure, very appreciate your kind help. Thanks in advance.
Regards,myza.
Comment