I'm working with XML data. when i try to specify an item from the array $item i got this error
[
  0 => array:4 [
    "Supplier_ID" => "34534565"
    "Supplier_Name" => "milan"
  ]
 1 => array:4 [
    "Supplier_ID" => "34534568"
    "Supplier_Name" => "adam"
  ]
and so on
$supplier_list_result = $supplier_list->body();
        $xml = simplexml_load_string($supplier_list_result);
        $json = json_encode($xml);
        $arrays = json_decode($json, TRUE);
        $supplier_name = [];
        foreach ($arrays as  $item) {
            $supplier_name = $item['Supplier_Name']; //when i use $supplier_name = $item it shows me the result above
        }
        dd($supplier_name);
 
     
    