php8.5
Home/ Manual/ gnupg / functions/ gnupg_gettrustlist

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

identifier

Identifier

pattern

Expression 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);
?>

Source: reference/gnupg/functions/gnupg-gettrustlist.xml · from the official PHP manual (php/doc-en)