rgexplode

The Gravity Forms rgexplode function.

Description

rgexplode( $sep, $string, (number) $count ); 

Parameters (3)

0. $sep
The sep.
1. $string
The string.
2. $count (number)
The count.

Usage

  1. if ( !function_exists( 'rgexplode' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'gravity-forms/gravityforms.php'; 
  3.  
  4. // The sep. 
  5. $sep = null; 
  6.  
  7. // The string. 
  8. $string = null; 
  9.  
  10. // The count. 
  11. $count = null; 
  12.  
  13. // NOTICE! Understand what this does before running. 
  14. $result = rgexplode($sep, $string, $count); 
  15.  

Defined (1)

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

/gravityforms.php  
  1. function rgexplode( $sep, $string, $count ) { 
  2. $ary = explode( $sep, $string ); 
  3. while ( count( $ary ) < $count ) { 
  4. $ary[] = ''; 
  5.  
  6. return $ary;