wpseek.com
A WordPress-centric search engine for devs and theme authors



urlencode_deep › WordPress Function

Since2.2.0
Deprecatedn/a
urlencode_deep ( $value )
Parameters:
  • (mixed) $value The array or string to be encoded.
    Required: Yes
Returns:
  • (mixed) The encoded value.
Defined at:
Codex:

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



Source

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