rawurlencode_deep() WordPress Function

The rawurlencode_deep() function is used to encode URL information. It is a useful tool for making sure that your data is properly formatted for inclusion in a URL. This function is especially helpful when dealing with complex data structures that may need to be passed through a URL.

rawurlencode_deep( mixed $value ) #

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


Parameters

$value

(mixed)(Required)The array or string to be encoded.


Top ↑

Return

(mixed) The encoded value.


Top ↑

Source

File: wp-includes/formatting.php

function rawurlencode_deep( $value ) {
	return map_deep( $value, 'rawurlencode' );
}


Top ↑

Changelog

Changelog
VersionDescription
3.4.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More