Here is a table whose classname is nick. I am trying to get this table by class name "nick".
<table class="nick">
<tbody>
<tr>
<th> a </th>
<th> b</th>
<th> c </th>
</tr>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
</tr>
</tbody></table>
here is the code.
include_once('simple_html_dom.php');
$html = file_get_html('http://www.example.com');
$table = $html->find('.nick');
echo $table . '<br>';
?>
when i get table by tagname it works but when i get it by class name it shows the msg "Array to string conversion" and it returns "Array".
how can i get this table by class nick and its rows and coloms.Also threre are 2 table which has classname "nick".