original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: 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
docstring_tokens: Set a single value in an array tree .