Parameters
$key - The element key.
$throwError - Indicates if an error should be thrown if the key is not found.
Returns
The object with the matching key value.
Syntax
PHP |
public function Retrieve($key, bool $showError = true) : ?LJCReplacement
|
Get the item by Key value.
Example
PHP |
include_once "LJCRoot.php";
$prefix = RelativePrefix();
include_once "$prefix/GenTextLib/LJCGenTextSectionLib.php";
$replacements = new LJCReplacements();
$replacement = new LJCReplacement("ReplacementName");
$replacements->Add($replacement, $replacement->Name);
$replacement = LJCReplacements->Retrieve("ReplacementName");
|
Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.