public function flatAssocArray(array $array)
	{
		$ret = [];
		foreach ($array as $key => $value) {
			if (is_array($value)) {
				$ret += $this->flatAssocArray($value);
			}
			else {
				$ret[ $key ] = $value;
			}
		}

		return $ret;
	}
public function flatAssocArray(array $array)
	{
		$ret = [];
		foreach ($array as $key => $value) {
			if (is_array($value)) {
				$ret += $this->flatAssocArray($value);
			}
			else {
				$ret[ $key ] = $value;
			}
		}

		return $ret;
	}
public function flatAssocArray ( array $ array ) { $ ret = [ ] ; foreach ( $ array as $ key => $ value ) { if ( is_array ( $ value ) ) { $ ret += $ this -> flatAssocArray ( $ value ) ; } else { $ ret [ $ key ] = $ value ; } } return $ ret ; }
Processes an associative array in a way that it has no nesting. Keys for
nested arrays are lost, but nested arrays are merged.
@param array $array
@return array
Processes an associative array in a way that it has no nesting . Keys for nested arrays are lost but nested arrays are merged .