hip1/9.4.php

<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> </head> <body> <?php function tagremove($html){ $tags = array("<a", "<img"); if($startpos = stripos($html, $tags[0]) or $startpos = stripos($html, $tags[1])){ $endpos = stripos($html, ">", $startpos); $html = substr_replace($html, "", $startpos, $endpos-$startpos+1); return tagremove($html); } else{ return $html; } } ?> </body> </html>

Resultaat

Made by Thijs Aarnoudse