how to access a value using the explode function in php 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);