/ LJCPHPCodeDoc / LJCDBAccessLib / LJCDbColumns / AddObject


Parameters
$item - The DbColumn definition.
$key - The collection array key.

Syntax

PHP
public function AddObject(LJCDbColumn $item, $key = null) : ?LJCDbColumn

Adds an object and key value.

Example

PHP
 $webCommonPath = "c:/inetpub/wwwroot/LJCPHPCommon";
 require_once "$webCommonPath/LJCDBAccessLib.php";
 
 $dbColumns = new LJCDbColumns();
 $dbColumn = new LJCDbColumn("Name");
 $dbColumns->AddObject($dbColumn);

Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.