<?php
$array = ['Waiting', 'for', 'Avenger', 'End', 'Game'];
echo implode(" ",$array);
?>
<?php
$array = ['A', 'v', 'e', 'n', 'g', 'e', 'r'];
echo implode($array);
?>
<?php
$array = [1, false, 0, true, NULL, 0.07];
echo implode(', ', $array);
?>
<?php
$movies = [
'comedy' => ['In the Loop', '21 Jump Street', 'Elf ', 'This Is the End'],
'war' => ['Dunkirk', 'Hacksaw Ridge', 'Inglourious Basterds', 'Defiance'],
'action' => ['La La Land', 'The Notebook', 'About Time', 'Twilight'],
'sci fi' => ['Interstellar', 'Annihilation', 'Gravity', 'Inception'],
];
echo implode(', ', $movies);
?>