Skip to content

Commit

Permalink
Update Array.php
Browse files Browse the repository at this point in the history
Added $data2 variable, and add "array_merge" features
  • Loading branch information
shocorion authored Oct 1, 2021
1 parent a997ce5 commit f8a3fea
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Array.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,18 @@
"kerja" => "pengacara" ,
);

$data2 = array( "istri" => "tobrut" ,
"laptop"=> "none" ,
);

$data['nama'] = "Koko Nio Ramadhan";
echo "Nama adalah" . $data['nama'];

print_r( array_values($data) );
echo "<br>";

print_r( array_keys($data) );
echo "<br>";

print_r( array_merge($data, $data2) );
?>

0 comments on commit f8a3fea

Please sign in to comment.