PHP Array to String

email-validation

Code :

$data = array('Anish', 'Bala', 'Somu');
$string = implode(',', $data);
print_r($string);

Output :

Anish,Bala,Somu
Tags: