<?php for($i == 0; $i < 10; $i++) echo "For sem chaves: ".$i."\n"; $i = 0; while($i < 10) echo "While sem chaves: ". $i++."\n";
Standard input is empty
For sem chaves: For sem chaves: 1 For sem chaves: 2 For sem chaves: 3 For sem chaves: 4 For sem chaves: 5 For sem chaves: 6 For sem chaves: 7 For sem chaves: 8 For sem chaves: 9 While sem chaves: 0 While sem chaves: 1 While sem chaves: 2 While sem chaves: 3 While sem chaves: 4 While sem chaves: 5 While sem chaves: 6 While sem chaves: 7 While sem chaves: 8 While sem chaves: 9
PHP Notice: Undefined variable: i in /home/8R1Q1y/prog.php on line 3 PHP Notice: Undefined variable: i in /home/8R1Q1y/prog.php on line 3 PHP Notice: Undefined variable: i in /home/8R1Q1y/prog.php on line 4 PHP Notice: Undefined variable: i in /home/8R1Q1y/prog.php on line 3