Since: 1.10.6
pods_var_set
Set a variable
pods_var_set is deprecated. Please use pods_v_set instead.
Function Definition
Parameters
Parameter | Type | Details |
---|---|---|
$value | (mixed) | The value to be set |
$key | (mixed) | The variable name or URI segment position |
$type | (string) | (optional) "url", "get", "post", "request", "server", "session", "cookie", "constant", or "user" |
Returns
(mixed) $value (if set), $type (if $type is array or object), or $url (if $type is 'url')