Advertisement
dVaffection

JSON

Jan 4th, 2013
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.11 KB | None | 0 0
  1. $arr = array(1, 2, 3);
  2.  
  3. echo $str = json_encode($arr);
  4.  
  5. echo '<pre>'; print_r(json_decode($str)); echo '</pre>';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement