rgget

The Gravity Forms + Stripe rgget function.

Description

(string) rgget( (string) $name, (null) $array = null ); 

Returns (string)

Parameters (2)

0. $name (string)
The name.
1. $array — Optional. (null) => null
The array.

Usage

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

Defined (1)

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

/includes/gf-utility-functions.php  
  1. function rgget ( $name, $array = null ) { 
  2. if ( ! isset( $array ) ) { 
  3. $array = $_GET; 
  4.  
  5. if ( isset( $array[$name] ) ) { 
  6. return $array[$name]; 
  7.  
  8. return "";