Guest User

Untitled

a guest
Jun 3rd, 2019
318
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.60 KB | None | 0 0
  1. $prods = [
  2.             'product' => [
  3.                 'RelatedProduct' => [
  4.                     'id', 'title',
  5.                     ['Specifications' => [
  6.                         [
  7.                             'id','title:Storage','position:3',
  8.                             ['values' =>
  9.                                 [
  10.                                     'id','value:32GB','position:2',
  11.                                 ]
  12.                             ]
  13.                         ],
  14.                         [
  15.                             'id','title:Display','position:1',
  16.                             ['values' =>
  17.                                 [
  18.                                     'id','value:IPS','position:3',
  19.                                 ]
  20.                             ]
  21.                         ]
  22.                     ]]
  23.                 ]
  24.             ],
  25.             'product 2' => [
  26.                 'RelatedProduct' => [
  27.                     'id', 'title',
  28.                     ['Specifications' => [
  29.                         [
  30.                             'id','title:Storage','position:3',
  31.                             ['values' =>
  32.                                 [
  33.                                     'id','value:16GB','position:1',
  34.                                 ]
  35.                             ]
  36.                         ],
  37.                         [
  38.                             'id','title:Display','position:1',
  39.                                 ['values' =>
  40.                                     [
  41.                                     'id','value:OLDE','position:1',
  42.                                     ]
  43.                                 ]
  44.                         ]
  45.                         ]]
  46.                 ]
  47.             ],
  48.             'product 3' => [
  49.                 'RelatedProduct' => [
  50.                     'id', 'title',
  51.                     ['Specifications' => [
  52.                         [
  53.                             'id','title:Storage','position:3',
  54.                                 ['values' =>
  55.                                     [
  56.                                     'id','value:32GB','position:2',
  57.                                     ]
  58.                                 ]
  59.                         ],
  60.                         [
  61.                             'id','title:Display','position:1',
  62.                             ['values' =>
  63.                                 [
  64.                                     'id','value:IPS','position:3',
  65.                                 ]
  66.                             ]
  67.                         ]
  68.                         ]]
  69.                 ]
  70.             ],
  71.         ];
Advertisement
Add Comment
Please, Sign In to add comment