<?php $array = [1,2,3]; $new_array = array_map(function ($item) {return ['sid' => $item];}, $array); echo print_r($new_array, true);
You have javascript disabled. You will not be able to edit any code.