xref: /PHP-Parser/test/code/parser/stmt/loop/while.test (revision 9a5d5c11)
1While loop
2-----
3<?php
4
5while ($a) {}
6
7while ($a):
8endwhile;
9-----
10array(
11    0: Stmt_While(
12        cond: Expr_Variable(
13            name: a
14        )
15        stmts: array(
16        )
17    )
18    1: Stmt_While(
19        cond: Expr_Variable(
20            name: a
21        )
22        stmts: array(
23        )
24    )
25)
26