I'm new at stackoverflow, hope find my solution here :)
Using PHP, i want a php function like:
function getHtmlTags($html_source, $tag='div', $by_attr="class", $attr_value="class_name"){
}
Ex: if 1 found, Should returns an array like so :
array([0] => '<div class="class_name">blah blah</div>');
I searched everywhere :( haven't found the solution! please help