$var = array[$object];
is not right it would cause a parse error
is $object the array
can you show me how you created the array as what yo have shown is not clear
and using imlode should be easy as long as you feed it an array
some examples
$var=implode(', ',$object);
or
$var=implode(', ',$array[$object]);
as the array need to have a $ sign
using you original post code
$consumer_progress[] = $_POST['consumer_progress'];
$field_name = implode(',',$consumer_progress);
(much code...)
$query="UPDATE client_db_doctor_client SET consumer_progress ='$field_name'