I am using Sales force.com Toolkit for PHP and I am attempting to output something I believe really is easy.

This Really Is WORKING EXAMPLE CODE

$query = "SELECT ID, Phone FROM Contact LIMIT 5";
$response = $mySforceConnection->query($query);

foreach ($response->records as $record) {
echo $record->ID." - ".$record->Phone;
}

I have TWEAKED THE QUERY AND Would Now Like To JUST OUTPUT THE Title And Also The COUNT. Nevertheless The CODE BELOW Doesn't Work

$query = "SELECT owner.name, count(type) FROM Task LIMIT 5";
$response = $mySforceConnection->query($query);

foreach ($response->records as $record) {
echo $record->owner.name; //DOES NOT WORK
}

This Is Exactly What I Recieve After I print_r ($record)

stdClass Object ( [Id] => [any] => Array ( [0] => First Last [1] => 2177 ) ) 

Among the finest to have the ability to output "First Last - 2177"

foreach ($response->records as $record)
{
    echo implode(' - ', $record->any);
}