PEAR::SOAP

<?php
require_once('SOAP/Client.php');

$key 'xxxxxxxxxxxx';
$query 'Caraveo';

$wsdlurl 'http://api.google.com/GoogleSearch.wsdl';
$WSDL = new SOAP_WSDL($wsdlurl);
$client $WSDL->getProxy();

$response =
        
$client->doGoogleSearch(
                    
$key,$query,0,4,
                    
false,'',false,'','','');

foreach(
$response->resultElements as $result) {
    echo 
'<a href="'.$result->URL.'">';
    echo 
$result->title."</a><br><br>\n";
    echo 
$result->snippet."<br><br><br>\n";
}
?>

PHP-SOAP

<?php
$key 
'xxxxxxxxxxxx';
$query 'Caraveo';

$wsdl 'http://api.google.com/GoogleSearch.wsdl';
$client = new SoapObject($wsdl);

$response =
        
$client->doGoogleSearch(
                    
$key,$query,0,4,
                    
false,'',false,'','','');

foreach(
$response->resultElements as $result) {
    echo 
'<a href="'.$result->URL.'">';
    echo 
$result->title."</a><br><br>\n";
    echo 
$result->snippet."<br><br><br>\n";
}
?>

Example Output
Welcome to Caraveo Papayas on Internet....!

... CARAVEO PAPAYAS. Welcome to Caraveo Papayas site on the Web. Here, you will find
all the information you are looking for about our products and our company. ...


This website is built for the Caraveo Family, and it's ...

This website is built for the Caraveo Family, and it's extended family members. ... Finally!
After almost a year of being down, Caraveo.com is almost back! ...


Rebecca Caraveo - Photographer

photography by rebecca m. caraveo, ... 2001 Photography by Rebecca Caraveo 2001
HTML Graphics by WebPortal Inc. All rights reserved. Disclaimer.


Page personnelle de Marc CARAVEO

... Tout d'abord bienvenue sur ma page personnelle de Marc CARAVEO. Malheureusement,
votre navigateur ne prend pas en compte les page contenant des cadres (frames). ...