How to validate plain text (link text)  in a hyperlink using php?
<p>I am using simple html dom to fetch datas from other websites. while fetching data it fetches both hyperlinks with plain text and without plain text. I want to remove hyperlinks without plain text(link text) while fetching the data ..
i have tried below codes</p>

<pre><code>if($title==""){ echo "No text";} 
</code></pre>

<p>and </p>

<pre><code>if(ctype_space($title)) { echo "No text";} 
</code></pre>

<p>where $title is the plaintext fetched from the website</p>

<p>but both method didnt worked..can any one help</p>

<p>Advance thanks for your help</p>
