TwistPHP Documentation

array3dTo2d

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

array3dTo2dCollapse a multidimensional array into a single associative array

Parameters

Name Type Description
$arrInarrayn/a
[$strJoinChar = ']stringn/a
[$mxdPreviousKey = null]mixedn/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');
$strJoinChar ';
$mxdPreviousKey = null;

//Call the function array3dTo2d with the example vars
$resTools = new \Twist\Core\Models\Tools();
$resTools -> array3dTo2d($arrIn, $strJoinChar, $mxdPreviousKey);