Parameters
$item - The object to be added to the collection.
$key - The element key.
Returns
The added item.
Syntax
PHP |
public function Add(LJCReplacement $item, $key = null) : void
|
Adds an object and 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);
|
Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.