Get/Set the Location header value.
public location ( null | string $url = null ) : string | null | ||
$url | null | string | Either null to get the current location, or a string to set one. |
return | string | null | When setting the location null will be returned. When reading the location a string of the current location header value (if any) will be returned. |