Consider the following XML:
$fb = ‘<links_getStats_response xsi:schemaLocation=”http://api.facebook.com/1.0/ http://api.facebook.com/1.0/facebook.xsd” list=”true”>
$xml = simplexml_load_string($fb);
$totalCount = $xml->link_stat->total_count;
Under a environment that you can only use variables in camelCase format and using SimpleXML, how will access the total_count from the xml?
The first 10 users that post the correct answers as comments in this post will receive a free ebook copy of the book PHP Series – The Encore Beginner Edition
Please use a valid email. All users will be contacted by email with the copy of the book.
Know the answer? Post it now!!!
Update: And we already have one winner. 9 e-books are available to send. Get yours too.