private function serialiseTheArrayKey($arr, $myName, &$headingRow, &$dataRow) { $ret = ""; foreach ($arr as $k => $val) { $ret = $myName; $dk = ArrayBuilder::getDummyKey(); if ($k != $dk) { $ret .= "_" . $k; } if (is_array($val)) { $this->serialiseTheArrayKey($val, $ret, $headingRow, $dataRow); } else { $headingRow[$ret] = true; $dataRow[$ret] = $val; } } }
public function __construct() { $this->dummyKey = ArrayBuilder::getDummyKey(); }