rawurlencode_deep( mixed $value ): mixed

In this article

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

Parameters

$valuemixedrequired
The array or string to be encoded.

Return

mixed The encoded value.

Source

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

Changelog

VersionDescription
3.4.0Introduced.

User Contributed Notes

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