php explode 5 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));
?>
$colors = "red,blue,green,orange";
$colorsArray = explode(",", $colors);
<?php
$str = "Hello world. It's a beautiful day.";
print_r (explode(" ",$str));
?>