eZPublish  4.4
implodeWithTypeCast

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

Note
: Use generateSQLINStatement() if you intent to use this for IN statments!
Parameters
string$glueThe separator.
array$piecesThe array containing the elements.
$typeThe type to cast to.
Returns
string ( ',', $myArray, 'int' )