SHARE
TWEET

1

ANIKI12 May 24th, 2019 95 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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();
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top