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"; ?>
|