I have searched the PHP.net site and originally thought of some use for the list() function but doesn\'t seem to accomplish the goal:
list()
I have an unknown
You can simply use PHP's implode function for this purpose as follows:
$string = implode(',', array(1,2,3,4,5));