# PhpExportParser

> Parses the var_export() or VarDumper::export() output of an array or object into a typed PHPForge\Debug\Panel\Log\DumpNode tree.

[API reference](/docs/api/index.md) › [Debug Core](/docs/extensions/debug-core/reference/index.md) › [Panel](/docs/extensions/debug-core/reference/panel/index.md) › [Log](/docs/extensions/debug-core/reference/panel/log/index.md) › PhpExportParser

| final class | `PHPForge\Debug\Panel\Log\PhpExportParser` |
| --- | --- |
| Source | [`src/Panel/Log/PhpExportParser.php`](https://github.com/php-forge/debug-core/blob/main/src/Panel/Log/PhpExportParser.php#L35) |

Parses the `var_export()` or `VarDumper::export()` output of an array or object into a typed [`DumpNode`](/docs/extensions/debug-core/reference/panel/log/dumpnode/index.md) tree.

Never evaluates the message; returns `null`, without throwing, for any unsupported form or an exceeded
[`PrintRParser`](/docs/extensions/debug-core/reference/panel/log/printrparser/index.md) bound.

## Methods

| Method | Description | Defined by |
| --- | --- | --- |
| [`parse()`](#method-parse) static | Parses a `var_export()` or `VarDumper::export()` value. | `PhpExportParser` |

## Method details

### parse() <span id="method-parse"></span>

```php
public static function parse(string $message): PHPForge\Debug\Panel\Log\DumpNode|null
```

Parses a `var_export()` or `VarDumper::export()` value.

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$message` | `string` |  |

**Returns**

[`DumpNode`](/docs/extensions/debug-core/reference/panel/log/dumpnode/index.md)`|null`: Root array or object block, or `null` for an unsupported message.