get end of explode in one line php code example Example: php explode end $url = explode("/", URL::current()); echo end($url);