wc_rest_urlencode_rfc3986( string|array $value )
Encodes a value according to RFC 3986.
Description Description
Supports multidimensional arrays.
Parameters Parameters
- $value
-
(Required) The value to encode.
Return Return
(string|array) Encoded values.
Source Source
File: includes/wc-rest-functions.php
function wc_rest_urlencode_rfc3986( $value ) { if ( is_array( $value ) ) { return array_map( 'wc_rest_urlencode_rfc3986', $value ); } return str_replace( array( '+', '%7E' ), array( ' ', '~' ), rawurlencode( $value ) ); }
Changelog Changelog
Version | Description |
---|---|
2.6.0 | Introduced. |