protected function setArrayDataValue(array &$arrayPointer, $key, $value)
{
$keys = explode('.', $key);
// Extract the last key
$lastKey = array_pop($keys);
// Walk/build the array to the specified key
while ($arrayKey = array_shift($keys)) {
if (!array_key_exists($arrayKey, $arrayPointer)) {
$arrayPointer[$arrayKey] = array();
}
$arrayPointer =& $arrayPointer[$arrayKey];
}
// Set the final key
$arrayPointer[$lastKey] = $value;
}