Grab the values from some url using curl concept
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/12615733/get-the-inner-text-using-curl-concept-in-php">Get the inner text using curl concept in php</a>  </p>
</blockquote>



<p>code is like this so on ....   </p>

<pre><code>     &lt;ul class="listings"&gt;
        &lt;li&gt;
        &lt;a href="../episode/a_bit_of_fry_and_laurie_s1_e1-106555.html"&gt;
        &lt;span class=""&gt;Episode 1&lt;/span&gt;
        &lt;span class="epnum"&gt;13/01/1989&lt;/span&gt;
        &lt;/a&gt;
        &lt;/li&gt;
        &lt;/ul&gt;
</code></pre>

<p>By means of curl concept i am grabbing the links at <strong>span</strong>
    Episode 1
        13/01/1989
I have used like this </p>

<pre><code>foreach($html-&gt;find('ul.listings li a span') as $e)
$e-&gt;innertext;
</code></pre>

<p>But my values are getting like </p>

<p><strong>Episode 1   Taste of Tokyo08/01/2002</strong>,I want only this 
 <strong>Episode 1   Taste of Tokyo</strong></p>
