static function pathSet(&$values, $pathParts, $value) {
        $r = &$values;
        $last = array_pop($pathParts);
        foreach ($pathParts as $part) {
            if (!isset($r[$part])) {
                $r[$part] = array();
            }
            $r = &$r[$part];
        }
        $r[$last] = $value;
    }
static function pathSet(&$values, $pathParts, $value) {
        $r = &$values;
        $last = array_pop($pathParts);
        foreach ($pathParts as $part) {
            if (!isset($r[$part])) {
                $r[$part] = array();
            }
            $r = &$r[$part];
        }
        $r[$last] = $value;
    }
static function pathSet ( & $ values , $ pathParts , $ value ) { $ r = & $ values ; $ last = array_pop ( $ pathParts ) ; foreach ( $ pathParts as $ part ) { if ( ! isset ( $ r [ $ part ] ) ) { $ r [ $ part ] = array ( ) ; } $ r = & $ r [ $ part ] ; } $ r [ $ last ] = $ value ; }
Set a single value in an array tree.

@param   array   $values     Ex: ['foo' => ['bar' => 123]].
@param   array   $pathParts  Ex: ['foo', 'bar'].
@param   mixed   $value      Ex: 456.
@return  void

@access  public
@static
Set a single value in an array tree .