• 28-01-2022, 12:45:13
    #1
    {"brands":[{"id":1053282,"name":"testname"}]}

    bu datayı nasıl listeleriz?
  • 28-01-2022, 13:01:35
    #2
    <?php 
    
    $json = '{"brands":[{"id":1053282,"name":"testname"}]}';
    
    $array = json_decode($json, true);
    
    foreach($array["brands"] as $sonuc) {
     echo "id: " . $sonuc["id"];  
     echo "<br>";
     echo "name: " . $sonuc["name"];   
     
    }
    
    ?>
  • 28-01-2022, 13:03:45
    #3
    teşekkürler