php - How to remove the querystring and get only the URL? - Stack Overflow

PHOTO EMBED

Wed Jun 26 2024 02:15:21 GMT+0000 (Coordinated Universal Time)

Saved by @al.thedigital #php #removequeryparams

$val = substr( $url, 0, strrpos( $url, "?"));
content_copyCOPY

https://stackoverflow.com/questions/6969645/how-to-remove-the-querystring-and-get-only-the-url