wordpress / latest / functions / urlencode_deep.html

urlencode_deep( mixed $value ): mixed

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

Parameters

$value mixed Required
The array or string to be encoded.

Return

mixed The encoded value.

Source

File: wp-includes/formatting.php. View all references

function urlencode_deep( $value ) {
	return map_deep( $value, 'urlencode' );
}

Uses

Uses Description

Used By

Used By Description

Changelog

Version Description
2.2.0 Introduced.

© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/urlencode_deep