Skip to content

VariableInfo

Mistralys edited this page Apr 30, 2021 · 1 revision

The parseVariable() function creates an instance of the VariableInfo class, which allows object oriented access to information on any PHP variable. It also offers ways to convert the variable to a human readable text for debugging purposes.

Usage

$info = parseVariable(new DateTime());

echo $info->toString();

Output:

DateTime

New here?

Have a look at the overview for a list of all helper classes available in the package.

Table of contents

Find the current page in the collapsible "Pages" list above, and expand the page, to view a table of contents.

Clone this wiki locally