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
if ( !function_exists( 'rawurlencode_deep' ) ) { require_once ABSPATH . WPINC . '/formatting.php'; } // The array or string to be encoded. $value = null; // NOTICE! Understand what this does before running. $result = rawurlencode_deep($value);
Defined (1)
The function is defined in the following location(s).
- /wp-includes/formatting.php
- function rawurlencode_deep( $value ) {
- return map_deep( $value, 'rawurlencode' );
- }