$arr = ['apple', 'orange']; array_push($arr, 'pear'); print implode(',', $arr); // Returns apple,orange,pear