K2hdkc::getAttrs K2hdkc Class K2hdkc::queueGet

K2hdkc::getSubkeys

Gets all subkeys of the key

Description

    public function getSubkeys(
        string $key): array|null {}

Gets all subkeys of the key.

Parameters

Return Values

Returns array on success or null on failure.

Examples

php -r '
$k2hdkc = new K2hdkc("tests/slave.ini");
$k2hdkc->addSubkey("test", "sub");
var_dump($k2hdkc->getSubkeys("test"));
$k2hdkc->close();
'

The above example will output:

array(1) {
  [0]=>
  string(3) "sub"
}

See Also

K2hdkc::getAttrs K2hdkc Class K2hdkc::queueGet