mirror of
https://github.com/twigphp/Twig.git
synced 2026-08-30 12:06:56 +00:00
Update json_encode.rst
This commit is contained in:
committed by
Fabien Potencier
parent
96f5b560ea
commit
a07b5ea008
@@ -17,7 +17,7 @@ Arguments
|
||||
* ``options``: A bitmask of `json_encode options`_: ``{{
|
||||
data|json_encode(constant('JSON_PRETTY_PRINT')) }}``.
|
||||
Combine constants using :ref:`bitwise operators<template_logic>`:
|
||||
``{{ data|json_encode(constant('JSON_PRETTY_PRINT') b-or constant('JSON_HEX_QUOT') }}``
|
||||
``{{ data|json_encode(constant('JSON_PRETTY_PRINT') b-or constant('JSON_HEX_QUOT')) }}``
|
||||
|
||||
.. _`json_encode`: https://secure.php.net/json_encode
|
||||
.. _`json_encode options`: https://secure.php.net/manual/en/json.constants.php
|
||||
|
||||
Reference in New Issue
Block a user