From f712b8f8e647a77d05400b9ab1c340c90f95015d Mon Sep 17 00:00:00 2001 From: Andrej Hudec Date: Sun, 24 Aug 2014 00:31:40 +0200 Subject: [PATCH] Added note about array_merge php function --- doc/filters/merge.rst | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/doc/filters/merge.rst b/doc/filters/merge.rst index 05a2ae7..cb8b1b2 100644 --- a/doc/filters/merge.rst +++ b/doc/filters/merge.rst @@ -39,3 +39,9 @@ overridden. {% set items = { 'apple': 'unknown' }|merge(items) %} {# items now contains { 'apple': 'fruit', 'orange': 'fruit' } #} + +.. note:: + + Internally, Twig uses the PHP `array_merge`_ function. + +.. _`array_merge`: http://php.net/array_merge -- 1.7.2.5