PHP Classes

File: vendor/nikic/php-parser/test/code/parser/scalar/encapsedNegVarOffset.test

Recommend this page to a friend!
  Packages of Abed Nego Ragil Putra   Laravel Blogging Platform   vendor/nikic/php-parser/test/code/parser/scalar/encapsedNegVarOffset.test   Download  
File: vendor/nikic/php-parser/test/code/parser/scalar/encapsedNegVarOffset.test
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Laravel Blogging Platform
Manage blog posts using Laravel and Bootstrap
Author: By
Last change:
Date: 8 months ago
Size: 1,557 bytes
 

Contents

Class file image Download
Encapsed string negative var offsets ----- <?php "$a[-0]"; "$a[-1]"; "$a[-0x0]"; "$a[-00]"; "$a[@@{ -PHP_INT_MAX - 1 }@@]"; ----- !!php7 array( 0: Scalar_Encapsed( parts: array( 0: Expr_ArrayDimFetch( var: Expr_Variable( name: a ) dim: Scalar_String( value: -0 ) ) ) ) 1: Scalar_Encapsed( parts: array( 0: Expr_ArrayDimFetch( var: Expr_Variable( name: a ) dim: Scalar_LNumber( value: -1 ) ) ) ) 2: Scalar_Encapsed( parts: array( 0: Expr_ArrayDimFetch( var: Expr_Variable( name: a ) dim: Scalar_String( value: -0x0 ) ) ) ) 3: Scalar_Encapsed( parts: array( 0: Expr_ArrayDimFetch( var: Expr_Variable( name: a ) dim: Scalar_String( value: -00 ) ) ) ) 4: Scalar_Encapsed( parts: array( 0: Expr_ArrayDimFetch( var: Expr_Variable( name: a ) dim: Scalar_LNumber( value: @@{ -PHP_INT_MAX - 1 }@@ ) ) ) ) )