Since: 2.0
pods_var_raw
Return a variable’s raw value (if exists)
pods_var_raw is deprecated. Please use pods_v instead.
Function Definition
function pods_var_raw ( $var = 'last', $type = 'get', $default = null, $allowed = null, $strict = false, $casting = false )
Source File: /pods/includes/data.php
Parameters
Parameter | Type | Details |
---|---|---|
$var | (mixed) | The variable name or URI segment position |
$type | (string) | (optional) get|url|post|request|server|session|cookie|constant|user|option|site-option|transient|site-transient|cache |
$default | (mixed) | (optional) The default value to set if variable doesn't exist |
$allowed | (mixed) | (optional) The value(s) allowed |
$strict | (bool) | (optional) Only allow values (must not be empty) |
$casting | (bool) | (optional) Whether to cast the value returned like provided in $default |
Returns
(mixed) The variable (if exists), or default value