- explode: documentation ( source)
<?php
$myString = "Adam.::|::.Bob.::|::.Bill";
$kaboom = explode(".::|::.", $myString); // Use a custom unique delimiter
foreach ($kaboom as $key => $value) {
echo "$value - is in the array at index $key<br />";
}
?>