Get url Segments in php Posted on March 7, 2017 by Chandan Sharma in array, Article, CodeIgniter, 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:TwitterFacebook Published by Chandan Sharma View all posts by Chandan Sharma