Aug 07 2006

Lots of Legos

< ?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://www.census.gov/ipc/www/world.html");
$data = curl_exec($ch);
$string = ob_get_contents();
list(,$second) = explode('World ‘, $string);
list($first) = explode(‘
‘, $second);
$world_pop = explode(“,”, $first);
$world_population = strip_tags(implode($world_pop));
$world_population = number_format($world_population * 30);

echo “legos

After talking with Dan, he informed me of a statistic that he found in a book and I thought it was very interesting. Every person in the World would need to possess 30 Lego’s each to make up all of the Lego’s that were made all time.

Since we live in a Dynamic world and the World Population is always changing, I thought I would create a Dynamic Number that corresponds with the above statement.


echo “Current Total Lego’s Created: “;
echo ““;
echo “$world_population”;
echo “

30 legos, dyamic world, legos, population, world population

About the author

Timothy Haroutunian

Timothy Haroutunian is a ServiceNow Cloud Implementation Specialist at Acorio. ServiceNow is an IT Management solution that allows for a complete view of your IT and physical environment.

Permanent link to this article: http://www.armenianeagle.com/2006/08/07/lots-of-legos/


1 comment

1 ping

  1. mercedes

    i love your show it is funny and you gas do what i do some times

  1. Armenian Eagle » 2006 » December » 28

    […] Lots of Legos (33) […]

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.