how to separate array with commas? [closed]

This is an inbuilt PHP function:

$result = implode($input, ',');

(as noted by Brian’s comment.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)