Good day.
I want to file_get_content() to load a webpage and use strip_tags() to get the string: Category:Apple.
<div class="category">
    <span style="font-size:11px; font-weight:bold;">Category:</span>
           <a href="/listing/A/new/yp/search.do?applicationInd=A" 
                class="category">Apple
           </a>
</div>
eg.
$text = '<div class="category">
         <span style="font-size:11px; fontweight:bold;">
         Category:</span><a href="/listing/A/new/yp/search.do?applicationInd=A"
         class="category">Apple</a></div>';
         echo strip_tags($text); //Category:Apple
What php statement do I need to do to pass variable to $text for that ... ?
Use preg_match?
 
     
    