PHP.nl

gnupg_gettrustlist

gnupg_gettrustlist

Search the trust items

 **gnupg_gettrustlist** resource $identifier string $pattern

identifier``patternExpression to limit the list of trust items to only the ones matching the pattern.

On success, this function returns an array of trust items. On failure, this function returns null.

Voorbeeld: Procedural example

<?php
$res = gnupg_init();
$items = gnupg_gettrustlist($res);
print_r($items);
?>

Voorbeeld: OO example

<?php
$gpg = new gnupg();
$items = $gpg->gettrustlist();
print_r($items);
?>