K2hdkc::getSubkeys
Gets all subkeys of the key
Description
public function getSubkeys(
string $key): array|null {}
Gets all subkeys of the key.
Parameters
- key
Specify the key.
Return Values
Returns array on success or null
on failure.
Examples
- Example 1 - Adds a subkey to the key
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::addSubkey - Adds a subkey to the key