I was simply wondering what would be the simplest and most efficient way of extracting a certain part of a dynamic string in PHP?
Per example, in this string:
Try this
$url = $_SERVER['REQUEST_URI']; $parsed_url = parse_url($url); $url_parts = explode('/',$parsed_url['path']); print_r($url_parts);