1 votes
1,279 views
29 downloads
Author: admin
Posted: August 28th 2012
Did this snippet help you out? If so send this person some money!
<?php
function has_html($string){
if(strlen($string) != strlen(strip_tags($string))){
return true;
}
return false;
}
var_dump(has_html("This string doesn't have any html"));
var_dump(has_html("This string has a<br />line break"));