jeudi 24 septembre 2020

combine and merge array in laravel

while merging array i got many isseus. i used array_merge and array_combine in laravl but no success

array:4 [▼
  "resident_id" => array:19 [▼
    2 => "2"
    1841 => "1841"
    
  ]
  "community_id" => array:19 [▼
    2 => "25"
    1841 => "25"
    1843 => "25"
    
  ]
  "out_of_community" => array:5 [▼
    2 => 
      "2020-09-25"
                                      
    
    1841 =>
      "2020-09-25"
                                      
      "
  ]



 i want 

  resident_id   community_id  out_of_community
    2             25            2020-09-25
    1841           25            2020-09-25

please help me to solve it.



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/3kKascL
via IFTTT

Aucun commentaire:

Enregistrer un commentaire