PHP Classes

File: src/eMacros/Runtime/Arithmetic/Multiplication.php

Recommend this page to a friend!
  Classes of Emmanuel Antico  >  eMacros  >  src/eMacros/Runtime/Arithmetic/Multiplication.php  >  Download  
File: src/eMacros/Runtime/Arithmetic/Multiplication.php
Role: Class source
Content type: text/plain
Description: Class source
Class: eMacros
PHP LISP language interpreter
Author: By
Last change:
Date: 8 years ago
Size: 423 bytes


Class file image Download
namespace eMacros\Runtime\Arithmetic;


Multiplication extends GenericFunction {
     * Obtains the product of all elements on a list
     * Usage: (* 4 6 2)
     * Returns: number
     * (non-PHPdoc)
     * @see \eMacros\Runtime\GenericFunction::execute()
public function execute(array $arguments) {
        return empty(
$arguments) ? 1 : array_product($arguments);

For more information send a message to info at phpclasses dot org.