$url = "correctif.json"; $json = file_get_contents($url); $parsed_json = json_decode($json); // On compte le nombre de logins à modifier $combien = count($parsed_json->{'correctifs'}); // Tableau des logins à modifier $a_modifier = array(); for ($i = 0; $i < $combien; $i++) { $a_modifier[$i] = $parsed_json->{'correctifs'}[$i]->{'login'}; }