How can individual text pieces be echoed separately after splitting in PHP?

When splitting a text into individual pieces in PHP, you can use the `explode()` function to separate the text based on a delimiter. To echo each individual text piece separately, you can store the result of `explode()` in an array and then loop through the array to echo each element.

$text = "Hello,World,PHP";
$pieces = explode(",", $text);

foreach ($pieces as $piece) {
    echo $piece . "<br>";
}