rawurlencode_deep

Navigates through an array, object, or scalar, and raw-encodes the values to be used in a URL.

Description

rawurlencode_deep( (mixed) $value ); 

Parameters (1)

0. $value (mixed)
The array or string to be encoded.

Usage

  1. if ( !function_exists( 'rawurlencode_deep' ) ) { 
  2. require_once ABSPATH . WPINC . '/formatting.php'; 
  3.  
  4. // The array or string to be encoded. 
  5. $value = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = rawurlencode_deep($value); 
  9.  

Defined (1)

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

/wp-includes/formatting.php  
  1. function rawurlencode_deep( $value ) { 
  2. return map_deep( $value, 'rawurlencode' );