<?php $url = 'https://example.com/wp-content/uploads/2022/03/sample.pdf'; echo parse_url($url, PHP_URL_PATH);
You have javascript disabled. You will not be able to edit any code.