User Tools

Site Tools


serializearray

serializeArray

Suggested fix for name, value pairs in serializeArray in https://stackoverflow.com/questions/51856589/how-can-i-serializearray-with-a-structure-based-on-key-value

These are PHP examples.

array_combine(array_column($data, 'name'), array_column($data, 'value'));

Untested

Another suggestions also untested:

foreach($data as $i) { $newData[$i['name']] = $i['value']; }
serializearray.txt · Last modified: 2023/04/23 15:51 by admin