mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-16 12:26:30 +00:00
Added note about array_merge php function
This commit is contained in:
@@ -39,3 +39,9 @@ overridden.
|
|||||||
{% set items = { 'apple': 'unknown' }|merge(items) %}
|
{% set items = { 'apple': 'unknown' }|merge(items) %}
|
||||||
|
|
||||||
{# items now contains { 'apple': 'fruit', 'orange': 'fruit' } #}
|
{# items now contains { 'apple': 'fruit', 'orange': 'fruit' } #}
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
|
||||||
|
Internally, Twig uses the PHP `array_merge`_ function.
|
||||||
|
|
||||||
|
.. _`array_merge`: http://php.net/array_merge
|
||||||
|
|||||||
Reference in New Issue
Block a user