/ LJCPHPCodeDoc / LJCCollectionLib / LJCCollectionBase / Remove


Parameters
$key - The element key.
$throwError - Indicates if an error should be thrown if the key is not found.

Syntax

PHP
public function Remove($key, bool $throwError = true) : void

Remove the item by Key value.

Example

PHP
 $webCommonPath = "c:/inetpub/wwwroot/LJCPHPCommon";
 require_once "$webCommonPath/LJCCollectionLib.php";
 
 // $collection extends LJCCollectionBase
 $collection->Remove("KeyName");

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