php8.5
Home/ Manual/ predefined / sensitiveparametervalue/ SensitiveParameterValue::getValue

SensitiveParameterValue::getValue

PHP function Edit on GitHub ✎

(PHP 8 >= 8.2.0)

Returns the sensitive value

Description

SensitiveParameterValue::getValue(): mixed

Get the sensitive value.

Parameters Parameters

Return Values

The sensitive value.

Examples

SensitiveParameterValue::getValue() example

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

echo "The protected value is: ", $s->getValue(), "\n";
?>

The above example will output:

output
The protected value is: secret

Source: language/predefined/sensitiveparametervalue/getvalue.xml · from the official PHP manual (php/doc-en)