php explode begin by the end - 1 code example Example: php explode end $url = explode("/", URL::current()); echo end($url);