<?php $details='[{"percentage":"12.5","id":10},{"percentage":"35","id":12},{"percentage":"5","id":52}]'; $data=(json_decode($details)); foreach($data as $d){ if($d['id'] == 52){ print_r($d['percentage']); } }
You have javascript disabled. You will not be able to edit any code.