Search code examples
phpezpublish

How can i merge array in ezpublish template?


If any one could help me to add arrays in ez publish.

i have arrays link

{def $a = array(a,b,c)}
{def $b = array(d,e)}

i want an output in an array like

$c = array(a,b,c,d,e);

Solution

  • This will surely work:

    {def $c = merge($a,$b)}
    

    output: array(a,b,c,d,e)