Advertisement
aldinokemal

Array Multidimensional

Sep 25th, 2022
753
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. $data = [
  4.     'id'         => 1,
  5.     'nama'       => 'Aldino Kemal',
  6.     'age'        => 40,
  7.     'address'    => [
  8.         'city'    => 'Yogyakarta',
  9.         'country' => 'indonesia'
  10.     ],
  11.     'specialist' => ['php', 'golang', 'mysql'],
  12.     'no_hp'      => [
  13.         [
  14.             'number'   => '628968523123',
  15.             'provider' => '3'
  16.         ],
  17.         [
  18.             'number'   => '6285155275621',
  19.             'provider' => 'By.U'
  20.         ],
  21.     ]
  22. ];
  23.  
  24. var_dump($data);
  25.  
  26.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement