Join Array Elements into String using PHP

implode function

<?php

$data = ['First', 'Second', 'Third'];

$text = implode(',', $data);
echo $text;

Leave a Comment

Cancel reply

Your email address will not be published.