PDA

View Full Version : PHP string replace



razor
November 26th, 2000, 19:59
what would i use say to delete a <body> tag and everything inside the tag including bgcolor,link, alink etc.

Koolguy
November 26th, 2000, 20:15
It's something like this:

$output=str_replace ("<body>", "replaced with whatever", $input);