<?php
$fruit_string="apple:orange:banana";
$fruits=preg_split("/:/",$fruit_string);
foreach($fruits as $value){
echo $value."<br>";
}
?>
$fruit_string="apple:orange:banana";
$fruits=preg_split("/:/",$fruit_string);
foreach($fruits as $value){
echo $value."<br>";
}
?>