Possible Duplicate:
Regex Remove Images with style tag from Html
PHP XML remove element and all children by name
How can I remove Button or input type=”button” tags in PHP?
<button>button_name</button>
I want to remove both of tag and the content inside of it.
How can I do this in PHP?
If you have a little more information about your exact goal, that would be helpful. Usually, the PHP is creating the button in the first place, so the easiest thing would be to find where in the script that html is being generated, make sure you are not going to be breaking something critical, and delete it from the php script.
One way of finding the place in the php code where the button is being generated is to do a multi-file find in your IDE or advanced text editor. Try searching for
<button>and see if you can find the exact button you are trying to eliminate.By the way, before you delete anything permanently, I highly recommend committing to your version control system, or at least making a manual backup of the file unless you have deleted the wrong thing.