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

Searching the Web with Yahoo!

Zend_Service_Yahoo enables you to search the Web with Yahoo! using the webSearch() method, which accepts a string query parameter and an optional second parameter as an array of search options. For full details and an option list, please visit the Yahoo! Web Search Documentation. The webSearch() method returns a Zend_Service_Yahoo_WebResultSet object.

Example 928. Searching the Web with Yahoo!

= new Zend_Service_Yahoo("YAHOO_APPLICATION_ID");
$results $yahoo->webSearch('PHP');
foreach (
$results as $result) {
$result->Title .'<br />';

Zend Framework