> For the complete documentation index, see [llms.txt](https://fademaze.gitbook.io/fademaze-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://fademaze.gitbook.io/fademaze-docs/php/variables.md). Agents can also search and read this documentation through its [MCP server](https://fademaze.gitbook.io/fademaze-docs/~gitbook/mcp).

# Variables

This page shows you how to set a variable in PHP.

### Single variable

```php
<?php
$x = "string";
$y = 5
$z = true;
?>
```
