PHP Conference Ehime 2026

Yaf_Route_Static::match

(Yaf >=1.0.0)

Yaf_Route_Static::matchWhether the route matches a URI

Açıklama

public function Yaf_Route_Static::match(string $uri): bool

Determine whether the static route matches a URI. Since the static route matches any URI, this method always returns true.

Bağımsız Değişkenler

uri

The URI to check.

Dönen Değerler

Always returns true.

Örnekler

Örnek 1 Yaf_Route_Static::match() example

<?php
$route = new Yaf_Route_Static();

/* the static route matches any URI */
var_dump($route->match("/product/detail/id/10"));
var_dump($route->match("/"));
?>

Yukarıdaki örnek şuna benzer bir çıktı üretir:

bool(true)
bool(true)

Ayrıca Bakınız

add a note

User Contributed Notes

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