PHPize Online / SQLize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
Copy Clear
Copy Format Clear
<?php $items = [1, 2, 3]; $index = 0; $count = count($items); while ($index < $count) { if ($items[$index] === 2) { $items[] = 4; $count++; } echo $items[$index++]; }
Show:  
Copy Clear