Here is a two liner:
array_walk($result, create_function('&$v', '$v = $v->property;'));
$result = implode(',', $result);
Or:
array_walk($result, function(&$v, &$k) use (&$result) { $v = $v->name; } );
$result = implode(',', $result);
Where $v->property
is your object property name to implode.
Also see array_map().