Strip query request from url by: puddinq on: Puddinq.com published: 26 September 2022 $uri = trim(strtok($url, '?'));