mirror of
https://github.com/phabelio/PHP-Parser.git
synced 2024-12-15 02:16:56 +01:00
135 lines
2.6 KiB
Plaintext
135 lines
2.6 KiB
Plaintext
Encapsed strings
|
|
-----
|
|
<?php
|
|
|
|
"$A";
|
|
"$A->B";
|
|
"$A[B]";
|
|
"$A[0]";
|
|
"$A[0x0]";
|
|
"{$A}";
|
|
"{$A['B']}";
|
|
"${A}";
|
|
"${A['B']}";
|
|
"${$A}";
|
|
"A $B C";
|
|
b"$A";
|
|
-----
|
|
array(
|
|
0: Scalar_Encapsed(
|
|
parts: array(
|
|
0: Expr_Variable(
|
|
name: A
|
|
)
|
|
)
|
|
)
|
|
1: Scalar_Encapsed(
|
|
parts: array(
|
|
0: Expr_PropertyFetch(
|
|
var: Expr_Variable(
|
|
name: A
|
|
)
|
|
name: B
|
|
)
|
|
)
|
|
)
|
|
2: Scalar_Encapsed(
|
|
parts: array(
|
|
0: Expr_ArrayDimFetch(
|
|
var: Expr_Variable(
|
|
name: A
|
|
)
|
|
dim: Scalar_String(
|
|
value: B
|
|
)
|
|
)
|
|
)
|
|
)
|
|
3: Scalar_Encapsed(
|
|
parts: array(
|
|
0: Expr_ArrayDimFetch(
|
|
var: Expr_Variable(
|
|
name: A
|
|
)
|
|
dim: Scalar_String(
|
|
value: 0
|
|
)
|
|
)
|
|
)
|
|
)
|
|
4: Scalar_Encapsed(
|
|
parts: array(
|
|
0: Expr_ArrayDimFetch(
|
|
var: Expr_Variable(
|
|
name: A
|
|
)
|
|
dim: Scalar_String(
|
|
value: 0x0
|
|
)
|
|
)
|
|
)
|
|
)
|
|
5: Scalar_Encapsed(
|
|
parts: array(
|
|
0: Expr_Variable(
|
|
name: A
|
|
)
|
|
)
|
|
)
|
|
6: Scalar_Encapsed(
|
|
parts: array(
|
|
0: Expr_ArrayDimFetch(
|
|
var: Expr_Variable(
|
|
name: A
|
|
)
|
|
dim: Scalar_String(
|
|
value: B
|
|
)
|
|
)
|
|
)
|
|
)
|
|
7: Scalar_Encapsed(
|
|
parts: array(
|
|
0: Expr_Variable(
|
|
name: A
|
|
)
|
|
)
|
|
)
|
|
8: Scalar_Encapsed(
|
|
parts: array(
|
|
0: Expr_ArrayDimFetch(
|
|
var: Expr_Variable(
|
|
name: A
|
|
)
|
|
dim: Scalar_String(
|
|
value: B
|
|
)
|
|
)
|
|
)
|
|
)
|
|
9: Scalar_Encapsed(
|
|
parts: array(
|
|
0: Expr_Variable(
|
|
name: Expr_Variable(
|
|
name: A
|
|
)
|
|
)
|
|
)
|
|
)
|
|
10: Scalar_Encapsed(
|
|
parts: array(
|
|
0: A
|
|
1: Expr_Variable(
|
|
name: B
|
|
)
|
|
2: C
|
|
)
|
|
)
|
|
11: Scalar_Encapsed(
|
|
parts: array(
|
|
0: Expr_Variable(
|
|
name: A
|
|
)
|
|
)
|
|
)
|
|
) |