str_url_encode
URL-encode a string with %20 for spaces.
str_url_encode(
str
) -> STRING
URL-encode a string with %20 for spaces.
Syntaxe
var enc = str_url_encode("hello world"); // "hello%20world"
Arguments
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
str | yes | - | String to encode |