Advertisement
ANIKI12

1

May 24th, 2019
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. <?php
  2.  
  3.  
  4.  
  5. function biodata(){
  6. $name = "Rizky Tanjung";
  7. $address = "singguan";
  8. $hobbies = array(
  9. "Coding",
  10. "game"
  11. );
  12.  
  13. $is_married = true;
  14. $skills = array(
  15. "name" => "coding",
  16. "score" => 2
  17. );
  18.  
  19. $result = json_encode(array(
  20. "nama" => $name,
  21. "alamat" => $address,
  22. "hobi" => $hobbies,
  23. "is married" => $is_married,
  24. "skill" => $hobbies
  25. ));
  26.  
  27. echo $result;
  28.  
  29. }
  30.  
  31. biodata();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement