1<?php
2 // Remove all html codes from a string
3 $html = '<p>I love <em>codes</em>.<br>We shall keep the learning going</p>';
4 echo strip_tags($html);
5 echo '<br>';
6 // Remove specific html tag/s from a string
7 echo strip_tags($html, '<br>');
8?>