PHP URI Template Parser

Expansion Tests

71 out of 71 pass (0 failures)

Vars for standard tests

Array
(
    [var] => value
    [hello] => Hello World!
    [undef] => 
    [empty] => 
    [list] => Array
        (
            [0] => val1
            [1] => val2
            [2] => val3
        )

    [keys] => Array
        (
            [key1] => val1
            [key2] => val2
        )

    [path] => /foo/bar
    [x] => 1024
    [y] => 768
    [foo] => fred
    [foo2] => That's right!
    [base] => http://example.com/home/
)

Simple expansion with comma-separated values

Reserved expansion with comma-separated values

Path-style parameters, semicolon-prefixed

Form-style parameters, ampersand-separated

Hierarchical path segments, slash-separated

Label expansion, dot-prefixed

Simple Expansion

Reserved Expansion