function search()
{
    // load Zend classes
    require_once 'Zend/Loader.php';
    Zend_Loader::loadClass('Zend_Rest_Client');
    // define category prefix
    $prefix = 'hollywood';
    // initialize REST client
    $wikipedia = new Zend_Rest_Client('http://en.wikipedia.org/w/api.php');
    // set query parameters
    $wikipedia->action('query');
    $wikipedia->list('allcategories');
    //All list queries return a limited number of results.
    $wikipedia->acprefix($prefix);
    $wikipedia->format('xml');
    // perform request and iterate over XML result set
    $result = $wikipedia->get();
    //echo "<ol>";
    foreach ($result->query->allcategories->c as $c) {
        //<a href="http://www.wikipedia.org/wiki/Category:
        echo $c . "<br>";
    }
}