Sample Call

<?php
// SOAP_CLIENT_BASEDIR - folder that contains the PHP Toolkit and your WSDL
// $USERNAME - variable that contains your Salesforce.com username (must be in the form of an email)
// $PASSWORD - variable that contains your Salesforce.com password

define("SOAP_CLIENT_BASEDIR", "../../soapclient");
require_once (SOAP_CLIENT_BASEDIR.'/SforceEnterpriseClient.php');
require_once ('../userAuth.php');
try {
  $mySforceConnection = new SforceEnterpriseClient();
  $mySoapClient = $mySforceConnection->createConnection(SOAP_CLIENT_BASEDIR.'/enterprise.wsdl.xml');
  $mylogin = $mySforceConnection->login($USERNAME, $PASSWORD);
  
  $search = 'FIND {415*} IN PHONE FIELDS '.
        'RETURNING CONTACT(ID, PHONE, FIRSTNAME, LASTNAME), '.
        'LEAD(ID, PHONE, FIRSTNAME, LASTNAME), '.
        'ACCOUNT(ID, PHONE, NAME)';
  $response = $mySforceConnection->search($search);

  print_r($response);
} catch (Exception $e) {
  print_r($mySforceConnection->getLastRequest());
  echo $e->faultstring;
}
?>

Sample Output

stdClass Object
(
    [searchRecords] => Array
        (
            [0] => stdClass Object
                (
                    [record] => stdClass Object
                        (
                            [Id] => 0035000000o1n2jAAA
                            [FirstName] => Mary
                            [LastName] => Jones
                            [Phone] => (415) 486-9969
                        )

                )

            [1] => stdClass Object
                (
                    [record] => stdClass Object
                        (
                            [Id] => 0035000000o1n2iAAA
                            [FirstName] => John
                            [LastName] => Smith
                            [Phone] => (415) 486-9969
                        )

                )

            [2] => stdClass Object
                (
                    [record] => stdClass Object
                        (
                            [Id] => 0015000000VALE4AAP
                            [Name] => sForce
                            [Phone] => (415) 901-7000
                        )

                )

        )

)