I'm trying to use the Simple Dom Parser to extract a piece of html from Yahoo Sports..
<?php
include('simple_html_dom.php');
$html = file_get_html('http://sports.yahoo.com/mlb/players/5763');
$ret = $html->find('ul[class=keystats]');
print $ret;
?>
Basically i'm trying to get the Win-Loss record and ERA from the following
<ul class="keystats"> <li><strong>W-L</strong> 3-1</li>
<li><strong>ERA</strong> 3.62</li>
<li><strong>K</strong> 23</li>
<li><strong>Walks</strong> 1</li>
<li><strong>WHIP</strong> 1.04</li>
</ul>
Its returning just "Array" when i use the code shown above, any ideas?
Array ( [0] => simple_html_dom_node Object ( [nodetype] => 1 [tag] => ul [attr] => Array ( [class] => keystats ) [children] => Arrayits a bunch of gibberish, 20,000+ characters worth that wouldnt fit on the page