gnupg_gettrustlist
PHP function
Edit on GitHub ✎
(PECL gnupg >= 0.5)
Search the trust items
Description
gnupg_gettrustlist(resource $identifier, string $pattern): array|null
Parameters
identifierIdentifier
patternExpression to limit the list of trust items to only the ones matching the pattern.
Return Values
On success, this function returns an array of trust items. On failure, this function returns null.
Examples
Procedural gnupg_gettrustlist() example
php
<?php
$res = gnupg_init();
$items = gnupg_gettrustlist($res);
print_r($items);
?>OO gnupg_gettrustlist() example
php
<?php
$gpg = new gnupg();
$items = $gpg->gettrustlist();
print_r($items);
?>