Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

URI Class

The URI class is the class provided by the uri extension. It is built with a string, as a URL, and parses it into smaller parts with its methods.

<?php

    use Uri\Rfc3986\Uri;
 
    $url = new Uri('https://www.php.net:443/phpinfo');

?>

Documentation

See Also