File path: dist/twist/Core/Models/Tools.model.php
Namespace: Twist\Core\Models
array3dTo2d
— Collapse a multidimensional array into a single associative array
Name | Description |
---|---|
$arrIn | n/a |
[$strJoinChar = '] | n/a |
[$mxdPreviousKey = null] | 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');
$strJoinChar = ';
$mxdPreviousKey = null;
//Call the function array3dTo2d with the example vars
$resTools = new \Twist\Core\Models\Tools();
$resTools -> array3dTo2d($arrIn, $strJoinChar, $mxdPreviousKey);