TwistPHP Documentation

ghostArray

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

ghostArrayCreate a blank multidimensional array using a URI-style string and populate the last item with a value

Parameters

Name Type Description
$strStructurestringn/a
[$strSplit = ']stringn/a
[$strFinalValue = null]stringn/a

Return Values

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

Example

<?php
//Set the variables for the example
$strStructure 'foo';
$strSplit ';
$strFinalValue = null;

//Call the function ghostArray with the example vars
$resTools = new \Twist\Core\Models\Tools();
$resTools -> ghostArray($strStructure, $strSplit, $strFinalValue);