- implode: documentation ( source)
- explode: documentation ( source)
- define: documentation ( source)
<?php
$array = array('lastname', 'email', 'phone');
echo implode(',', $array);
define('DEFAULT_ROLES', implode (',' , $array));
echo explode(',' ,DEFAULT_ROLES ) [2];