TwistPHP Documentation

Tools

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

Type: Model

Tools — A set of useful tools that have been designed to be used throughout the framework, these tools are to stop repartition of common code and data processing algorithms.

Example Usage

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

//Call the function arrayParseUnset with the example vars
$resTools = new \Twist\Core\Models\Tools();
$resTools -> arrayParseUnset($strKey, $arrData, $strSplitChar);

Method List

Method Access Returns
arrayPrintpublicvoid
arrayParsepublicvoid
arrayParseUnsetpublicvoid
array3dTo2dpublicvoid
array2dTo3dpublicvoid
arrayMergeRecursivepublicvoid
arrayReindexpublicvoid
ghostArraypublicvoid
arrayRelationalTreepublicvoid
buildRelationalTreeprivatevoid
varDumppublicvoid
traverseURIpublicvoid
randomStringpublicvoid
slugpublicvoid
zipStringspublicvoid