Parameters
$item - The object to be added to the collection.
$key - The element key.
Returns
The added item.
Syntax
PHP |
public function Add(LJCSection $item, $key = null) : void
|
Adds an object and key value.
Example
PHP |
$webCommonPath = "c:/inetpub/wwwroot/LJCPHPCommon";
require_once "$webCommonPath/LJCGenTextSectionLib.php";
$sections = new LJCSections();
$section = new LJCSection("SectionName");
$sections->Add($section, $section->Name);
|
Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.