php end explode code example
Example 1: php explode
$colors = "red,blue,green,orange";
$colorsArray = explode(",", $colors);
Example 2: php explode end
$url = explode("/", URL::current());
echo end($url);
Example 3: php explode
<?php
$str = "Hello world. It's a beautiful day.";
print_r (explode(" ",$str));
?>