how does explode work in php code example
Example 1: php explode
$colors = "red,blue,green,orange";
$colorsArray = explode(",", $colors);
Example 2: php explode
<?php
$str = "Hello world. It's a beautiful day.";
print_r (explode(" ",$str));
?>