view vendor/nikic/php-parser/test/code/parser/expr/exit.test @ 7:848c88cfe644

More layout
author Chris Cannam
date Fri, 05 Jan 2018 13:59:44 +0000
parents 4c8ae668cc8c
children 5fb285c0d0e3
line wrap: on
line source
Exit
-----
<?php
exit;
exit();
exit('Die!');
die;
die();
die('Exit!');
-----
array(
    0: Expr_Exit(
        expr: null
    )
    1: Expr_Exit(
        expr: null
    )
    2: Expr_Exit(
        expr: Scalar_String(
            value: Die!
        )
    )
    3: Expr_Exit(
        expr: null
    )
    4: Expr_Exit(
        expr: null
    )
    5: Expr_Exit(
        expr: Scalar_String(
            value: Exit!
        )
    )
)