Keshav 11 Questions 0 Answers 0 Best Answers 20 Points View Profile 0 Keshav Asked: April 17, 2020In: PHP How to concatenate an array of Ids into a string in PHP in order to save the value in a database column of type varchar? 0 How to concatenate an array of Ids into a string in PHP in order to save the value in a database column of type varchar? php Share Facebook 1 Answer Voted Oldest Recent Mohd Tariq United Arab Emirates 0 Questions 10 Answers 0 Best Answers 40 Points View Profile tariq Added an answer on April 28, 2020 at 5:45 am This answer was edited. By using the implode function of php that converts an array into a string. See example below: $array = [1,2,3,4,5,6,7,8,9,10]; $string = implode((“,”, $array); $string value will be “1,2,3,4,5,6,7,8,9,10” 0 Reply Share Share Share on Facebook Share on Twitter Share on LinkedIn Share on WhatsApp Sorry, you do not have a permission to answer to this question.