rgars

The Gravity Forms + Stripe rgars function.

Description

(string) rgars( $array, (string) $name ); 

Returns (string)

Parameters (2)

0. $array
The array.
1. $name (string)
The name.

Usage

  1. if ( !function_exists( 'rgars' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'gravity-forms-stripe/includes/gf-utility-functions.php'; 
  3.  
  4. // The array. 
  5. $array = null; 
  6.  
  7. // The name. 
  8. $name = ''; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = rgars($array, $name); 
  12.  

Defined (1)

The function is defined in the following location(s).

/includes/gf-utility-functions.php  
  1. function rgars ( $array, $name ) { 
  2. $names = explode( '/', $name ); 
  3. $val = $array; 
  4. foreach ( $names as $current_name ) { 
  5. $val = rgar( $val, $current_name ); 
  6.  
  7. return $val;