Eksploduj ostatni element PHP
$string = 'abc-123-xyz-789';
$exploded = explode('-', $string);
echo end($exploded);
hindi mirchi
$string = 'abc-123-xyz-789';
$exploded = explode('-', $string);
echo end($exploded);
$url = explode("/", URL::current());
echo end($url);