PHP AdSense account monitor class, can retrieve data from your AdSense account (impressions, clicks, ctr, ecpm, earnings). This class can retrieve (for now) only “AdSense for Content” data, for different periods of time (see class methods for more details). You can implement this PHP class in your own applications. Note: this code is absolete. Check new project at http://code.google.com/p/php-adsense-account-library/
[code]
... Read More »
This function takes an array and a key that is unwanted. It will recurse through and unset the key in the argument array and all its sub-arrays.
[code]
function recursive_unset(&$array, $unwanted_key) ... Read More »
Esta función sólo trunca una cadena cuando encuentra el punto de ruptura que le indiquemos -un espacio, un punto, dos puntos,..- y resulta muy útil, por ejemplo, para mostrar un extracto de un artículo completo sin romper las palabras.
[code]
// Original PHP code by Chirp Internet: www.chirp.com.au... Read More »
With most of the popular web services like Twitter providing their data through APIs, it is always helpful to know how to parse API data which is sent in various formats including JSON, XML etc.
[code]
$json_string='{"id":1,"name":"foo","email":"foo@foobar.com","interest":["wordpress","php"]} ';... Read More »