File path: dist/twist/Core/Models/Tools.model.php
Namespace: Twist\Core\Models
array2dTo3d
— Transform an associative array into a multidimensional array using a key to define the structure
Name | Description |
---|---|
$arrIn | n/a |
[$strMultiDimensionalKey = null] | n/a |
[$strSplitChar = '] | n/a |
void — No return information has been documented for this function.
<?php
//Set the variables for the example
$arrIn = array(0 => 'foo', 1 => 'bar');
$strMultiDimensionalKey = null;
$strSplitChar = ';
//Call the function array2dTo3d with the example vars
$resTools = new \Twist\Core\Models\Tools();
$resTools -> array2dTo3d($arrIn, $strMultiDimensionalKey, $strSplitChar);