PHP Strip_Tags – String Function

<?php
   $input = "This <a href='http://www.w3mentor.com/'>example</a>!";
   echo strip_tags($input, "<a>");
?>

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.