Definition:
function urlencode_deep($value) {}
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.
Parameters
- array|string $value: The array or string to be encoded.
Return values
returns:The encoded array (or string from the callback).
Source code
function urlencode_deep($value) { $value = is_array($value) ? array_map('urlencode_deep', $value) : urlencode($value); return $value; }
3265
No comments yet... Be the first to leave a reply!