<?php $rows = [ [ 'x' => 1 ] ]; foreach ( (array) $rows as &$row ) { $row['y'] = 2; } echo json_encode( $rows ) . PHP_EOL;
You have javascript disabled. You will not be able to edit any code.