Article / CodeIgniter / PHPGet url Segments in php March 7, 2017 Chandan SharmaComment on Get url Segments in php## Get Url Segments from Url in php $uri_path = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH); $uri_segments = explode('/', $uri_path); Share this:FacebookX