fs_urlencode_rfc3986

The NextGEN Gallery fs urlencode rfc3986 function.

Description

(array|mixed|string) fs_urlencode_rfc3986( (string|string[]) $input ); 

Returns (array|mixed|string)

Parameters (1)

0. $input (string|string[])
The input.

Usage

  1. if ( !function_exists( 'fs_urlencode_rfc3986' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'nextgen-gallery/freemius/includes/fs-core-functions.php'; 
  3.  
  4. // The input. 
  5. $input = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = fs_urlencode_rfc3986($input); 
  9.  

Defined (1)

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

/freemius/includes/fs-core-functions.php  
  1. function fs_urlencode_rfc3986( $input ) { 
  2. if ( is_array( $input ) ) { 
  3. return array_map( 'fs_urlencode_rfc3986', $input ); 
  4. } else if ( is_scalar( $input ) ) { 
  5. return str_replace( '+', ' ', str_replace( '%7E', '~', rawurlencode( $input ) ) ); 
  6.  
  7. return '';