Posts Tagged ‘php’

strip_tags

Friday, June 20th, 2008

<?php
$text = ‘<p>Test paragraph.</p><!– Comment –> <a href=”#fragment”>Other text</a>’;
echo strip_tags($text);

this function use to extracta string from HTML and PHP tags and return only it .

Share/Save