<?php $block = [1, 2, 3]; foreach ($block as $key => &$form) { // ...}$form = 'Упс...';var_dump($block);
Standard input is empty
array(3) { [0]=> int(1) [1]=> int(2) [2]=> &string(9) "Упс..." }
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!