• 07-01-2020, 02:11:35
    #1
    Merhabalar, alt satırdaki json kodlarından sadece operationMessage'i nasıl yazdırabilirim?
    {"ShipmentDeliveryResultVO":{"outFlag":"0","outResult":"Ba\u015far\u0131l\u0131","count":1,"senderCustId":420839458,"shipmentDeliveryDetailVO":{"cargoKey":"460214302771","invoiceKey":"1323453","jobId":6684163,"operationCode":0,"operationMessage":"Kargo \u0130\u015flem G\u00f6rmemi\u015f.","operationStatus":"NOP"}}}
  • 07-01-2020, 02:13:23
    #2
    Üyeliği durduruldu
    http://www.erbilen.net/php-ve-json/ Bu siteden yardım alabilirsin.
  • 07-01-2020, 02:14:12
    #3
    ataliemre adlı üyeden alıntı: mesajı görüntüle
    Merhabalar, alt satırdaki json kodlarından sadece operationMessage'i nasıl yazdırabilirim?
    {"ShipmentDeliveryResultVO":{"outFlag":"0","outResult":"Ba\u015far\u0131l\u0131","count":1,"senderCustId":420839458,"shipmentDeliveryDetailVO":{"cargoKey":"460214302771","invoiceKey":"1323453","jobId":6684163,"operationCode":0,"operationMessage":"Kargo \u0130\u015flem G\u00f6rmemi\u015f.","operationStatus":"NOP"}}}
    $jsonObject = json_decode('{"ShipmentDeliveryResultVO":{"outFlag":"0","outResult":"Ba\u015far\u0131l\u0131","count":1,"senderCustId":420839458,"shipmentDeliveryDetailVO":{"cargoKey":"460214302771","invoiceKey":"1323453","jobId":6684163,"operationCode":0,"operationMessage":"Kargo \u0130\u015flem G\u00f6rmemi\u015f.","operationStatus":"ecNOP"}}}');
    
    echo $jsonObject->ShipmentDeliveryResultVO->shipmentDeliveryDetailVO->operationMessage;
    • recepasann
    recepasann bunu beğendi.
    1 kişi bunu beğendi.
  • 07-01-2020, 02:15:24
    #4
    json_decode et