TwistPHP Documentation

array2dTo3d

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

array2dTo3dTransform an associative array into a multidimensional array using a key to define the structure

Parameters

Name Type Description
$arrInarrayn/a
[$strMultiDimensionalKey = null]stringn/a
[$strSplitChar = ']stringn/a

Return Values

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

Example

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

//Call the function array2dTo3d with the example vars
$resTools = new \Twist\Core\Models\Tools();
$resTools -> array2dTo3d($arrIn, $strMultiDimensionalKey, $strSplitChar);