Test data - PHP Online

Form of PHP Sandbox

Enter Your PHP code here for testing/debugging in the Online PHP Sandbox. As in the usual PHP files, you can also add HTML, but do not forget to add the tag <?php in the places where the PHP script should be executed.



Your result can be seen below.

Result of php executing





Full code of Test data.php

  1. <?php
  2. $data '[{"nps_id":"US308320043935","regional":"Regional 3","witel":"KARAWANG","nama_pelanggan":"MOHAMAD YUSUP","msisdn":"081313534388","ncli":"-","nd":"131268100608","episode":"Use Internet","nps_score":"7","reason_desc":"Internet tidak stabil","reason_category":"negatif","metode":"CATI","ts_call":"2020-09-22","list_week":"W39 Sep 20","sumber_channel":null,"NDE":" ","MTTR":" ","lapul":" ","gaul":" ","gamas":" "},{"nps_id":"DUPUS308320043935","regional":"Regional 3","witel":"KARAWANG","nama_pelanggan":"MOHAMAD YUSUP","msisdn":"081313534388","ncli":"-","nd":"131268100608","episode":"Use Internet","nps_score":"7","reason_desc":"Internet tidak stabil","reason_category":"negatif","metode":"CATI","ts_call":"2020-10-20","list_week":"W43 Oct 20","sumber_channel":null,"NDE":null,"MTTR":null,"lapul":null,"gaul":null,"gamas":null}]';
  3.  
  4. $ex = json_decode($data);
  5.  
  6. echo $ex[0]['nps_id'];
File Description
  • Test data
  • PHP Code
  • 13 Jan-2021
  • 891 Bytes
You can Share it: