Get a free ebook copy of PHP Series – The Encore Beginner Edition

How a old teacher of mine would say: Nothing comes for free, but this one, will, all it’s needed to do is to post a comment with the correct answer for the following question:

Consider the following XML:

$fb = ‘<links_getStats_response xsi:schemaLocation=”http://api.facebook.com/1.0/ http://api.facebook.com/1.0/facebook.xsd&#8221; list=”true”>

<link_stat>
<url>https://mcloide.wordpress.com</url&gt;
<share_count>0</share_count>
<like_count>0</like_count>
<comment_count>0</comment_count>
<total_count>0</total_count>
<click_count>0</click_count>
<normalized_url>https://mcloide.wordpress.com/</normalized_url&gt;
</link_stat>
</links_getStats_response>’;

$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.

Advertisements

About mcloide

Making things simpler, just check: http://www.mcloide.com View all posts by mcloide

3 responses to “Get a free ebook copy of PHP Series – The Encore Beginner Edition

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: