$test_string = '<a href="#">blah blah</a>';
$test_obj = simplexml_load_string($test_string);
fb((string)$test_obj[0]);
I thought I could just access the contents of the anchor tag by doing $test_obj[0]. I'm doing this to move away from using regular expressions to access individual html elements and properties in PHP. Is this cast to string necessary or is there a better way?
thanks!