GuzzleHttpPsr7uri_for

Returns a UriInterface for the given value.

Description

GuzzleHttp\Psr7\uri_for( (string|UriInterface) $uri ); 

This function accepts a string or and returns a UriInterface for the given value. If the value is already a 'UriInterface', it is returned as-is.

Parameters (1)

0. $uri (string|UriInterface)
The uri.

Usage

  1. if ( !function_exists( 'GuzzleHttp\Psr7\uri_for' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'w3-total-cache/lib/Azure/GuzzleHttp/Psr7/functions.php'; 
  3.  
  4. // The uri. 
  5. $uri = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = GuzzleHttp\Psr7\uri_for($uri); 
  9.  

Defined (1)

The function is defined in the following location(s).

/lib/Azure/GuzzleHttp/Psr7/functions.php