samedi 12 décembre 2015

How to merge multiple arrays in PHP and output the values together?

I have a situation while developing an application on Laravel. I have three arrays in the following order. I need to merge them and display their values in the following order too. Here , it goes.

stone_name['ruby','diamond','catseye'];
stone_weight[112,223,445];
stone_rate[1000,2500,670];

I need to merge these three arrays and display the out put in this order.

stone_info = array(stone_name[0] , stone_weight[0] , stone_rate[0]);

So that the final result will be like :

stone_info = array("ruby",112,1000);



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire