Skip to content

Instantly share code, notes, and snippets.

<?php
namespace Sfi\Migration\Command;
/* *
* This script belongs to the TYPO3 Flow package "Sfi.Migration". *
* *
* */
use TYPO3\Flow\Annotations as Flow;
use TYPO3\Flow\Cli\CommandController;
@thoov
thoov / flatten.php
Created November 8, 2011 07:48
Flatten and Inflate n-dimensional arrays in php.
<?php
private function flatten($array, $base = "", $div_char = "/")
{
$ret = array();
if(is_array($array))
{
foreach($array as $k => $v)
{
if(is_array($v))