Beispiel #1
0
 /** Charge un fichier Json en tant que tableau associatif
  *
  * @param $filePath Chemin vers le fichier à lire
  * @return Le contenue au dans un tableau associatif
  */
 public static function jFile2Array($jFilePath)
 {
     $content = file_get_contents($jFilePath);
     if ($content === false) {
         throw new Exception("Can't read input file {$jFilePath}");
     }
     return JsonUtils::jString2Array($content);
 }