Solar_Uri::setPath()

public void Solar_Uri::setPath ( string $spec )

Sets the Solar_Uri::$path array from a string.

Parameters

  • (string) $spec: The path string to use; for example, "/foo/bar/baz/dib". A leading slash will not create an empty first element; if the string has a leading slash, it is ignored.

Returns

  • (void)

Description

Sets the Solar_Uri::$path array from a string.

This will overwrite any previous values. Also, resets the format based on the final path value.



Local