0 votes
by (1.2k points)

1 Answer

0 votes
by (1.2k points)

<?php

$array = array('apple', 'banana', 'cherry');

$string = implode(', ', $array);

echo "String: " . $string . "\n";

$newArray = explode(', ', $string);

print_r($newArray);

?>

...