Im using a class that returns a rather large (I guess) array. How do I get the value of the div's class attribute - in this array its 'display:none' - Its the output from a print_r.
Here is the array: http://joe-riggs.com/large%5Farray.php
Also the class I'm using that is returning this array is simplehtmldom_1_11 - so there may be a more direct way of accessing that I don't know about that I couldnt find in the documentation.
Here' the source to my page listed above with some unsuccessful attempts:
<?PHP
ini_set('display_errors', 1);
ini_set('log_errors', 1);
ini_set('error_log', dirname(__FILE__) . '/error_log.txt');
error_reporting(E_ALL);
include('simplehtmldom/simple_html_dom.php');
$myFile = "red.html";
$fh = fopen($myFile, 'r');
$page = fread($fh, filesize($myFile));
fclose($fh);
$html = str_get_html($page);
// find all span tags with class=gb1
//foreach($html->find('div[class^=entry]') as $e)
foreach($html->find('div[class*=thing id-t3]') as $e){
print_r($e);
die;
//echo $e->outertext . '<br>';
//$e->find('div#', 0)->plaintext
//$e->find('div#display:none', 0)->plaintext;
}
?>