Issue Task Closed

#39134t3lib_utility_array::arrayExport should recognize int keys

Christian Kuhn 07/20/12, 16:48 updated 10/23/17, 22:12

Description

psoudo code:

$lines = ‘array(’ . LF;
$level ++;
    // determine if keys are int from 0 to n, without gaps, then $isIntKey = TRUE
foreach ($array as $key => $value) {
// if isIntKey
$lines = ‘’;
else $lines .= str_repeat(TAB, $level) . ‘\’‘ . $key . ‘\’ => ‘;

Reviews 1