TwistPHP Documentation

arrayParseUnset

File path: dist/twist/Core/Models/Tools.model.php
Namespace: Twist\Core\Models
Extends:

arrayParseUnsetRemove an item from a multi-dimensional array using a key, the split char indicates a change in array level

Parameters

Name Type Description
$strKeystringn/a
$arrDataarrayn/a
[$strSplitChar = ']stringn/a

Return Values

void — No return information has been documented for this function.

Example

<?php
//Set the variables for the example
$strKey 'foo';
$arrData = array(=> 'foo'=> 'bar');
$strSplitChar ';

//Call the function arrayParseUnset with the example vars
$resTools = new \Twist\Core\Models\Tools();
$resTools -> arrayParseUnset($strKey, $arrData, $strSplitChar);