otherthing - 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 otherthing.php

  1. <?php
  2.  
  3. $asArray = json_decode('{"shortId":"13141-11778","interactionReason":"OK","resultCode":"00000.SECURETRADING.0","referenceId":"5dd435f41eeb776bf721d427o","resultInfo":"Ok","network":"VISA","reference":"TOTE","returnCode":"OK","returnCodeSource":"PSP","returnCodeName":"OK","currency":"GBP","notificationId":"2452179091228714","pspCode":"SECURETRADING","reasonCode":"credited","accountRegistrationId":"5dd3ff88ac3c045b9c20102fa","timestamp":"2019-11-19T19:35:32.898+01:00","clearingCurrency":"GBP","amount":"15.75","customerRegistrationId":"5dd3ff88ac3c045b9c20102eu","longId":"5dd435f41eeb776bf721d427o","transactionId":"Withdrawal-u_26_5dd435efd9d12","interactionCode":"PROCEED","clearingAmount":"15.75","entity":"payment","statusCode":"paid_out"}');
  4.  
  5. var_dump(http_build_query((array)$asArray));
File Description
  • otherthing
  • PHP Code
  • 19 Nov-2019
  • 803 Bytes
You can Share it: