joachip

Generating a json file in PHP

Feb 23rd, 2021
636
17 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. class Config
  4. {
  5.     var $FileName = "C:\\LMS_AD_ExportScript\\moch.csv";
  6.     var $TmpFileName = "C:\\LMS_AD_ExportScript\\tmp.csv";
  7.     var $SuperUsers = array("User1", "User2");
  8. }
  9.  
  10.  
  11. $bla = new Config();
  12. echo json_encode($bla, JSON_PRETTY_PRINT)."\n";
  13.  
  14. ?>
RAW Paste Data