Strings In Depth5 / 18
Up next

Join with implode

<?php
declare(strict_types=1);
$parts = ["2024", "01", "15"];
// implode joins with a separator
echo implode("-", $parts), "\n";
What you're solving

glue an array into a string