| CARVIEW |
Select Language
HTTP/2 301
date: Mon, 29 Dec 2025 00:55:05 GMT
content-type: text/html; charset=UTF-8
location: https://docs.gravityforms.com/rgars/
server: cloudflare
strict-transport-security: max-age=604800
strict-transport-security: max-age=31536000; includeSubDomains
x-content-type-options: nosniff
x-content-type-options: nosniff
x-xss-protection: 1; mode=block
x-xss-protection: 1; mode=block
x-frame-options: SAMEORIGIN
x-frame-options: SAMEORIGIN
content-security-policy: frame-ancestors 'self';
referrer-policy: no-referrer
referrer-policy: strict-origin-when-cross-origin
x-redirect-by: WordPress
fastcgi-cache: EXPIRED
cf-cache-status: DYNAMIC
nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
report-to: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=jgnOn%2B7OvSFvtAkrBHjaqZ4zyb3D6cPFdDTtvB3aMVIdC7eIwfm2ztf9YGEvjE0EYr4iSoZKrDElJzPN8GV8nmEBGqeayyjip3FzoGrjwJQNZVvO"}]}
cf-ray: 9b55546d7888d817-BLR
HTTP/2 200
date: Mon, 29 Dec 2025 00:55:06 GMT
content-type: text/html; charset=UTF-8
server: cloudflare
vary: Accept-Encoding
strict-transport-security: max-age=604800
strict-transport-security: max-age=31536000; includeSubDomains
x-content-type-options: nosniff
x-content-type-options: nosniff
x-xss-protection: 1; mode=block
x-xss-protection: 1; mode=block
x-frame-options: SAMEORIGIN
x-frame-options: SAMEORIGIN
content-security-policy: frame-ancestors 'self';
referrer-policy: no-referrer
referrer-policy: strict-origin-when-cross-origin
link: ; rel="https://api.w.org/"
link: ; rel="alternate"; title="JSON"; type="application/json"
link: ; rel=shortlink
fastcgi-cache: EXPIRED
report-to: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=BUujsBsVcqAlaLcurq1QReJtD%2Bcgz7w%2BAYIFK3CefKsqxYWUwMQXWBfxADtVx7L0JkqUxQHdD2Lw88CK2H4XydsJFJ%2FeUVkvKgSLaW1Q%2FR6Ks%2FfE"}]}
cf-cache-status: DYNAMIC
nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
content-encoding: gzip
cf-ray: 9b5554743c7ed817-BLR
rgars() - Gravity Forms Documentation
rgars()
Description
Finds a value within a multi level array. Forward slashes ( / ) are used to descend down the structure of the array.
Usage
rgars( $array, $name );
Parameters
- $array array
The array that you want to obtain a value from.
-
$name string
The array keys, separated by a forward slash, to be located.
Examples
// Defines the multilevel array, and transcends it to get the value.
$array = array(
'firstlevel' => array(
'secondlevel' => array(
'thirdlevel' => 'Desired Value'
)
)
)
$name = 'firstlevel/secondlevel/thirdlevel';
rgars( $array, $name );
Source Code
This function is located in gravityforms.php