Twig

The flexible, fast, and secure
template engine for PHP

a Symfony Product
Docs Tests same as
Docs for Twig version 3.x
Switch to another version: 1.x, 2.x

Questions & Feedback

License

Twig documentation is licensed under the new BSD license.

same as

same as checks if a variable is the same as another variable. This is equivalent to === in PHP:

1
2
3
{% if user.name is same as(false) %}
    the user attribute is the 'false' PHP value
{% endif %}