dimanche 30 juillet 2017

I need php pattern to preg_much

I need help a pattern to preg_much the value and keys and assign a value to its key in fast way i try some way but its lazy I want to get these values and keys code

line.one = {
    "l1": 732,"l2": 708,"l3": 780,"l4": 586,"l5": 451   };
line.two = {
    "l1": 2506.61,"l2": 2225.6916,"l3": 2974.5775,"l4": 3063.9443   };
line.three = {
    "l1": 530,"l2": 900,"l3": 258,"l4": 214 };


**example what i want**



array(  
        [1] => Array
        (
        [11]=>732,
        [12]=>708,
        [13]=>780,
        [14]=>586,
        [15]=>451
        )
            [2] => Array
        (
            [11] => 2506
            [12] => 2225
            [13] => 2974
            [14] => 3063

        )

    [3] => Array
        (
             [11] => 530
            [12] => 900
            [13] => 258
            [14] => 214
        )

Aucun commentaire:

Enregistrer un commentaire