---
title: "Fluid Syntax: Variables"
manual: "Fluid Explained"
version: "4.6"
permalink: "https://docs.typo3.org/permalink/fluid:variables-syntax"
source: "Syntax/Variables.rst"
rendered: "2026-10-08T14:26:23+00:00"
---

# Fluid Syntax: Variables {#variables-syntax}

## Accessing variables {#variable-access}

Variables in Fluid can be accessed with the following braces `{}` syntax:

```html
<h1>{title}</h1>
```

### Arrays and objects {#variable-access-objects}

Use the dot character `.` to access array keys:

```html
<p>{data.0}, {data.1}</p>
```

This also works for object properties:

```html
<p>{product.name}: {product.price}</p>
```

These object properties are obtained by evaluating a fallback chain,
which includes various getter methods as well as direct property access.
For example, the following PHP-equivalents would be checked for `{product.name}`:

```php
$product->getName()
$product->isName()
$product->hasName()
$product->name
```

Also, both `ArrayAccess` and the PSR `ContainerInterface` are supported.

### Dynamic keys/properties {#dynamic-properties}

It is possible to access array or object values by a dynamic index:

```html
{myArray.{myIndex}}
```

## Reserved variable names {#reserved-variables}

The following variable names are **reserved** and *must not* be used:

-   `_all`
-   `true`
-   `false`
-   `null`
