eZ Publish  [4.2]
implodeWithTypeCast

Casts elements of $pieces to type $type and returns them as string separated by $glue.

Parameters:
string$glueThe separator.
array$piecesThe array containing the elements.
$typeThe type to cast to.

( ',', $myArray, 'int' )