Switch language

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




urlencode_deep [ WordPress Function ]

urlencode_deep ( $value )
Parameters:
  • (array|string) $value The array or string to be encoded.
Returns:
  • (array|string) $value The encoded array (or string from the callback).
Defined at:



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

Source


<?php
function urlencode_deep($value) {
    
$value is_array($value) ? array_map('urlencode_deep'$value) : urlencode($value);
    return 
$value;
}
?>

Examples [ wp-snippets.com ]

Google Arama Sonuçlarý

Dahasý ...

Kullanýcý Tartýþmalarý [ wordpress.org ]

- Bulunamadý -

Yeni bir konu yaz ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics