PhpRiot
Become Zend Certified

Prepare for the ZCE exam using our quizzes (web or iPad/iPhone). More info...


When you're ready get 7.5% off your exam voucher using voucher CJQNOV23 at the Zend Store

Finding Local Businesses and Services with Yahoo!

You can search for local businesses and services with Yahoo! by using the localSearch() method. For full details, please see the Yahoo! Local Search Documentation.

Example 931. Finding Local Businesses and Services with Yahoo!

<?php
$yahoo 
= new Zend_Service_Yahoo("YAHOO_APPLICATION_ID");
$results $yahoo->localSearch('Apple Computers', array('zip' => '95014'));
foreach (
$results as $result) {
    echo 
$result->Title .'<br />';
}

Zend Framework