Uri\WhatWg\Url::getPath
En esta página
Uri\WhatWg\Url::getPath
Recupera el componente de ruta
Descripción#
public Uri\WhatWg\Url::getPath(): string
```php
Recupera el componente de ruta.
## Parámetros
Esta función no contiene ningún parámetro.
## Valores devueltos
Devuelve el componente de ruta como un `string`.
## Ejemplos
Ejemplo básico de Uri\WhatWg\Url::getPath
```php
El ejemplo anterior mostrará:
/foo/bar
Véase también#
Uri\WhatWg\Url::withPath
Uri\Rfc3986\Uri::getRawPath
Uri\Rfc3986\Uri::getPath