How can I use the implode function to join an array into a string with a separator in PHP? Example code: - Biz Tech

How can I use the implode function to join an array into a string with a separator in PHP? Example code:

Listen
$fruits = array("apple", "banana", "orange");

$string = implode(" | ", $fruits);

echo $string;