@wpkernel/php-json-ast v0.12.6-beta.3
@wpkernel/php-json-ast / buildArrayDimFetch
Function: buildArrayDimFetch()
ts
function buildArrayDimFetch(
variable,
dim,
attributes?): PhpExprArrayDimFetch;Builds a PHP array dimension fetch expression node.
Parameters
variable
The array variable.
dim
The dimension (key) being accessed, or null for appending.
PhpExpr | null
attributes?
Readonly<Record<string, unknown>>
Optional attributes for the node.
Returns
A PhpExprArrayDimFetch node.
