- implode: documentation ( source)
<?php
$profile_fields = array(
'id',
'first-name',
'last-name',
'headline',
'location:(name)',
'industry',
'num-connections',
'summary',
'specialties',
'picture-url',
'email-address',
'last-modified-timestamp',
'interests',
'educations',
'date-of-birth',
);
echo implode(',',$profile_fields);