previousIntroduction (Previous) (Next) Services_Technoratinext

View this page in Last updated: Sun, 18 Oct 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

Example

Example – Basic examples of Services_Google

Basic examples of Services_Google

The following examples show how to use some basic features of Services_Google:

Search Google for PEAR

<?php
require_once 'Services/Google.php';
    
$google = new Services_Google($key);

$google->queryOptions['limit'] = 30;
$google->search("PEAR");

foreach (
$google as $key => $result) {
  echo 
"$key]\t$result->title\n";
}
?>

Spell Checking

<?php
require_once 'Services/Google.php';
    
$google = new Services_Google($key);

echo 
$google->spellingSuggestion("wahll")."\n";
?>
previousIntroduction (Previous) (Next) Services_Technoratinext

Download Documentation Last updated: Sun, 18 Oct 2009
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.