WordPress.org

Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/urlencode deep

Description

Navigates through an array and encodes the values to be used in a URL.

Uses a callback to pass the value of the array back to the function as a string.

Usage

<?php urlencode_deep$value ); ?>

Parameters

$value
(array|string) (required) The array or string to be encoded.
Default: None

Return Values

(array|string) 
$value The encoded array (or string from the callback).

Change Log

Since: 2.2

Source File

urlencode_deep() is located in wp-includes/formatting.php