public function assignArrayByPath(&$arr, $path)
    {
        $keys = explode('.', $path);

        while ($key = array_shift($keys)) {
            $arr = &$arr[$key];
        }

        return $arr;
    }
public function assignArrayByPath(&$arr, $path)
    {
        $keys = explode('.', $path);

        while ($key = array_shift($keys)) {
            $arr = &$arr[$key];
        }

        return $arr;
    }
public function assignArrayByPath ( & $ arr , $ path ) { $ keys = explode ( '.' , $ path ) ; while ( $ key = array_shift ( $ keys ) ) { $ arr = & $ arr [ $ key ] ; } return $ arr ; }
Assign a value to the path.

@param array  &$arr Original Array of values
@param string $path Array as path string

@return mixed
Assign a value to the path .