fork download
  1. <?php
  2.  
  3. $json = '{"Channel":"Roamio","Login":"Y","TransactionId":"1747649475","TransactionType":"NewCustomerSubscription","ExternalOrderId":"250519-302","ErrorCode":"1","ErrorDescription":"eSIM Not Available","SIMProfile":{"SIMNumber":null,"ActivationCode":null}}';
  4. $response = json_decode($json, TRUE);
  5. print_r($response);
Success #stdin #stdout 0.03s 25856KB
stdin
Standard input is empty
stdout
Array
(
    [Channel] => Roamio
    [Login] => Y
    [TransactionId] => 1747649475
    [TransactionType] => NewCustomerSubscription
    [ExternalOrderId] => 250519-302
    [ErrorCode] => 1
    [ErrorDescription] => eSIM Not Available
    [SIMProfile] => Array
        (
            [SIMNumber] => 
            [ActivationCode] => 
        )

)