Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<SensitiveParameterValue::__constructSensitiveParameterValue::getValue>
^SensitiveParameterValueLast updated: Mon, 26 Oct 2026

SensitiveParameterValue::__debugInfo

(PHP 8 >= 8.2.0)

SensitiveParameterValue::__debugInfo — Protects the sensitive value against accidental exposure

Description

public function SensitiveParameterValue::__debugInfo(): array

Returns an empty array to protect the sensitive value against accidental exposure when using var_dump().

Parameters

This function has no parameters.

Return Values

An empty array.

Examples

Example #1 Passing a SensitiveParameterValue object to var_dump()

<?php
$s = new \SensitiveParameterValue('secret');

var_dump($s);
?>

The above example will output:

object(SensitiveParameterValue)#1 (0) {
}


<SensitiveParameterValue::__constructSensitiveParameterValue::getValue>
^SensitiveParameterValueLast updated: Mon, 26 Oct 2026