explode just once php code example
Example 1: php explode end
$url = explode("/", URL::current());
echo end($url);
Example 2: explode in php
$str = 'one two three four';
$numbers4 = explode(' ',$str);
$url = explode("/", URL::current());
echo end($url);
$str = 'one two three four';
$numbers4 = explode(' ',$str);