# dump()

Simple object and variable dumper to help with debugging.

****

- Source: <https://github.com/getkirby/kirby/tree/5.5.3/config/helpers.php#L119>

****

```php
dump(mixed $variable, bool $echo = true): string
```

## Parameters

| Name | Type | Default | Description |
| ---- | ---- | ---- | ---- |
| `$variable` (required) | `mixed` | – | – |
| `$echo` | `bool` | `true` | – |

## Return type

`string`

## Examples

```php
dump($kirby->users());

$tags = $page->tags()->pluck(',');
dump($tags);
```

If you want to return only the value, you can set the second parameter to false:

```php
$fruitSalad = ['🍎', '🥝', '🍒', '🍇', '🍐'];

$dump = dump($fruitSalad, false);
```