- implode: documentation ( source)
<?php
$include[] = 'location.address.city';
$include[] = 'categoryOffice.offer.availabilityDate';
$include[] = 'categoryOffice.offer.rent';
$include[] = 'categoryOffice.offer.serviceCharges';
$include[] = 'parkingInformation.rentInside';
$include[] = 'parkingInformation.rentOutside';
$include[] = 'statusCompleted.constructionDate';
$include[] = 'statusPlanned.constructionDate';
$include[] = 'statusUnderConstruction.constructionDate';
$include[] = 'statusUnderRenovation.constructionDate';
$include[] = 'statusInactive.constructionDate';
$include[] = 'buildingInformation';
$include[] = 'certificates';
$include[] = 'parties.company';
echo implode(',', $include);