lundi 15 juin 2020

merge two difffrent array from one variable in laravel

I have two different arrays from the same variable.... How can I merge it? I tried array_merge($tag); but it did not work.


$tag = Array
    (
        [0] => Array
            (
                [id] => 119
                [category_id] => 3
                [name] => Aggressive
                [active] => 
                [slug] => aggressive
                [description] => 
                [tracks] => Array
                    (
                    )

                [elements] => Array
                    (
                    )

            )

    )

    $tag = Array
    (
        [0] => Array
            (
                [id] => 290
                [category_id] => 1
                [name] => East Coast
                [active] => 
                [slug] => east-coast
                [description] => 
                [tracks] => Array
                    (
                    )

                [elements] => Array
                    (
                    )

            )

    )



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

Aucun commentaire:

Enregistrer un commentaire