HEX
Server: Apache
System: Linux dev.epsylon.net 3.10.0-1160.144.1.el7.tuxcare.els2.x86_64 #1 SMP Sun Feb 15 11:22:42 UTC 2026 x86_64
User: graficav (1037)
PHP: 8.2.30
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/graficav/holatimbres.cl/tools/smarty/plugins/function.implode.php
<?php
/**
 * Smarty plugin
 *
 * @package Smarty
 * @subpackage PluginsFunction
 */

/**
 * Smarty {implode} plugin
 *
 * Type:     function<br>
 * Name:     implode<br>
 * Purpose:  implode Array
 * Use: {implode value="" separator=""}
 *
 * @link http://www.smarty.net/manual/en/language.function.fetch.php {fetch}
 *       (Smarty online manual)
 * 
 * @param array                    $params   parameters
 * @param Smarty_Internal_Template $template template object
 * @return string|null if the assign parameter is passed, Smarty assigns the result to a template variable
 */
function smarty_function_implode($params, $template)
{
    if (!isset($params['value']))
    {
        trigger_error("[plugin] implode parameter 'value' cannot be empty", E_USER_NOTICE);
        return;
    }

    if (empty($params['separator']))
		$params['separator'] = ',';

	return implode($params['value'], $params['separator']);
}

?>