urlencode_deep( mixed $value )

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


Description Description


Parameters Parameters

$value

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


Top ↑

Return Return

(mixed) $value The encoded value.


Top ↑

Source Source

File: wp-includes/formatting.php

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

Top ↑

Changelog Changelog

Changelog
Version Description
2.2.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.