File: src/eMacros/Runtime/String/Concatenation.php

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

Contents

Class file image Download
<?php
namespace eMacros\Runtime\String;

use
eMacros\Runtime\GenericFunction;

class
Concatenation extends GenericFunction {
   
/**
     * Concatenates a list of strings
     * Usage: (. 'Hello ' 'World')
     * Returns: string
     * (non-PHPdoc)
     * @see \eMacros\Runtime\GenericFunction::execute()
     */
   
public function execute(array $arguments) {
        if (isset(
$arguments[0])) {
            return
implode('', $arguments);
        }
       
        return
'';
    }
}

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