Tuesday, May 10, 2011

PHP in SimpleXML How to get a node with hyphen(-) ?



How to get a node with hyphen(-), PHP in SimpleXML ? 

$xml = simplexml_load_file( $fileName );
$post_list  = $xml->blog->{'post-list'};



No comments: