multiply

Sum all input parameters.

Description

(float|int) multiply(); 

Returns (float|int)


Usage

  1. if ( !function_exists( 'multiply' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'contact-form-db/cfdb-transform-functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = multiply(); 
  7.  

Defined (1)

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

/cfdb-transform-functions.php  
  1. function multiply() { // concat(...) // splat operator in PHP 5.3 
  2. $product = ''; 
  3. $first = true; 
  4. foreach (func_get_args() as $arg) { 
  5. if (is_numeric($arg)) { 
  6. if ($first) { 
  7. $product = floatval($arg); 
  8. $first = false; 
  9. } else { 
  10. $product *= floatval($arg); 
  11. return $product;