update page now

Uri\Rfc3986\Uri::getRawPath

(PHP 8 >= 8.5.0)

Uri\Rfc3986\Uri::getRawPathRecupera el componente de ruta sin procesar

Descripción

public Uri\Rfc3986\Uri::getRawPath(): string

Recupera el componente de ruta sin procesar (no normalizado).

Parámetros

Esta función no contiene ningún parámetro.

Valores devueltos

Devuelve el componente de ruta sin procesar como un string.

Ejemplos

Ejemplo #1 Ejemplo básico de Uri\Rfc3986\Uri::getRawPath()

<?php
$uri
= new \Uri\Rfc3986\Uri("https://example.com/foo/bar");

echo
$uri->getRawPath();
?>

El ejemplo anterior mostrará:

/foo/bar

Ver también

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top