Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ArrayDimFetch.php

function ArrayDimFetch::__construct

Constructs an array index fetch node.

Parameters

Expr $var Variable:

null|Expr $dim Array index / dim:

array<string, mixed> $attributes Additional attributes:

File

vendor/nikic/php-parser/lib/PhpParser/Node/Expr/ArrayDimFetch.php, line 20

Class

ArrayDimFetch

Namespace

PhpParser\Node\Expr

Code

public function __construct(Expr $var, ?Expr $dim = null, array $attributes = []) {
    $this->attributes = $attributes;
    $this->var = $var;
    $this->dim = $dim;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal