**SPIP**
# Article validated
The article "**|print** (https://www.spip.net/en_article6563.html)" was
validated by <multi>[ar]جورج[fr]George [en]George</multi>.
* * *
Friday 22 May 2020 , by [jack](.././?page=auteur&id_auteur=593&)
The filter **`|print`** produces a human-readable display of the tag to
which it applies.
- When the tag is *a string*, for example:
"Once upon a time in London town..."
then the result displayed is this string passed through the filter `|typo`
(unbreakable spaces, conversion of quotes...)
- When the tag is an array which is itself *a simple list*, for example:
array('john', 'peter', 'lucie', 'zoe')
or an array where all the keys are numeric, for example:
array(0 => 'john', 1 => 'peter', 2 => 'lucie', 3 => 'zoe')
then the result displayed is a simple enumeration whose elements are
separated by a comma.
In this example, the display will therefore be: `"john, peter, lucie, zoe"`
- When the tag is *an array* which contains non-numeric keys or elements
which are themselves arrays, the filter displays one line per entry, with
the name of the key of the sub-array followed by the value (itself
displayed according to the same rules: string or enumeration or array in
lines).
For example [1] :
array('tree' => array('beech', 'pine', 'poplar'), 'flower' =>
array('red' => 'poppy', 'blue' => 'lavender', 'yellow' => 'marigold'))
will display the html source:
<br>
tree: beech, pine, poplar
<br>
flower:
<br>
red: poppy
<br>
blue: lavender
<br>
yellow: marigold
which will appear thus:
tree: beech, pine, poplar
fleur:
red: poppy
blue: lavender
yellow: marigold
[1] this array can be a #ARRAY written in spip syntax:
#SET{table, #ARRAY{tree, #ARRAY{0, beech, 1, pine, 2, poplar}, flower,
#ARRAY{red, poppy, blue, lavender, yellow, marigold}}}
— Sent by SPIP (https://www.spip.net/)

![]()