I want to validate a URI (not URL only) in PHP, though couldn't find any way to do this.
PHP does have parse_url()
but it is not for URIs, it would be helpful to find a proper way to validate URI structures such as the following:
content://com.example.provider/articles/?optional=queries