wpcf7_flat_join

The Contact Form 7 wpcf7 flat join function.

Description

wpcf7_flat_join( $input ); 

Parameters (1)

0. $input
The input.

Usage

  1. if ( !function_exists( 'wpcf7_flat_join' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'contact-form-7/includes/functions.php'; 
  3.  
  4. // The input. 
  5. $input = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = wpcf7_flat_join($input); 
  9.  

Defined (1)

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

/includes/functions.php  
  1. function wpcf7_flat_join( $input ) { 
  2. $input = wpcf7_array_flatten( $input ); 
  3. $output = array(); 
  4.  
  5. foreach ( (array) $input as $value ) { 
  6. $output[] = trim( (string) $value ); 
  7.  
  8. return implode( ', ', $output );