<?php $json = '{"options": {"options0": {"name":"soph","value":"School of Public Health"}, "options1": {"name":"son","value":"School of Nursing"}, "options2": {"name":"sohp","value":"School of Health Professions"} } }'; $arr = array_column(json_decode($json, true)['options'], "value", "name"); var_dump($arr); echo $arr['sohp'];
You have javascript disabled. You will not be able to edit any code.