Skip to content
PHP Ecosystem
Explore

PhpExportParser

API reference › Debug Core › Panel › Log › PhpExportParser

final classPHPForge\Debug\Panel\Log\PhpExportParser
Sourcesrc/Panel/Log/PhpExportParser.php

Parses the var_export() or VarDumper::export() output of an array or object into a typed DumpNode tree.

Never evaluates the message; returns null, without throwing, for any unsupported form or an exceeded PrintRParser bound.

MethodDescriptionDefined by
parse() staticParses a var_export() or VarDumper::export() value.PhpExportParser
public static function parse(string $message): PHPForge\Debug\Panel\Log\DumpNode|null

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

Parameters

ParameterTypeDescription
$messagestring

Returns

DumpNode|null: Root array or object block, or null for an unsupported message.