You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

94 lines
1.7 KiB

Casts
-----
<?php
(array) $a;
(bool) $a;
(boolean) $a;
(real) $a;
(double) $a;
(float) $a;
(int) $a;
(integer) $a;
(object) $a;
(string) $a;
(unset) $a;
-----
array(
0: Stmt_Expression(
expr: Expr_Cast_Array(
expr: Expr_Variable(
name: a
)
)
)
1: Stmt_Expression(
expr: Expr_Cast_Bool(
expr: Expr_Variable(
name: a
)
)
)
2: Stmt_Expression(
expr: Expr_Cast_Bool(
expr: Expr_Variable(
name: a
)
)
)
3: Stmt_Expression(
expr: Expr_Cast_Double(
expr: Expr_Variable(
name: a
)
)
)
4: Stmt_Expression(
expr: Expr_Cast_Double(
expr: Expr_Variable(
name: a
)
)
)
5: Stmt_Expression(
expr: Expr_Cast_Double(
expr: Expr_Variable(
name: a
)
)
)
6: Stmt_Expression(
expr: Expr_Cast_Int(
expr: Expr_Variable(
name: a
)
)
)
7: Stmt_Expression(
expr: Expr_Cast_Int(
expr: Expr_Variable(
name: a
)
)
)
8: Stmt_Expression(
expr: Expr_Cast_Object(
expr: Expr_Variable(
name: a
)
)
)
9: Stmt_Expression(
expr: Expr_Cast_String(
expr: Expr_Variable(
name: a
)
)
)
10: Stmt_Expression(
expr: Expr_Cast_Unset(
expr: Expr_Variable(
name: a
)
)
)
)