Final Class Yiisoft\VarDumper\Handler\EchoHandler
| Inheritance | Yiisoft\VarDumper\Handler\EchoHandler |
|---|---|
| Implements | Yiisoft\VarDumper\HandlerInterface |
Public Methods
| Method | Description | Defined By |
|---|---|---|
| handle() | Yiisoft\VarDumper\Handler\EchoHandler |
Method Details
| public void handle ( mixed $variable, integer $depth, boolean $highlight = false ) | ||
| $variable | mixed | |
| $depth | integer | |
| $highlight | boolean | |
public function handle(mixed $variable, int $depth, bool $highlight = false): void
{
$varDumper = VarDumper::create($variable);
$output = $varDumper->asString($depth);
echo $highlight
? $this->highlight($output)
: $output;
}
Signup or Login in order to comment.