how to explode and get 1 index value in php code example Example: php explode end $url = explode("/", URL::current()); echo end($url);