[Solved] php Json_decode correct way to get individual data


try

$json=json_encode($_POST['myData']);
$decoded = json_decode($json,true); 

if (is_array($decoded)) {
  for($i = 0; $i <= count($decoded); $i++) {
        echo $decoded[$i]["name"];

    }
}

1

solved php Json_decode correct way to get individual data