Advertisement
Guest User

Untitled

a guest
Oct 24th, 2012
547
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.27 KB | None | 0 0
  1. // works
  2. $json_data = file_get_contents('includes/signups.txt');
  3. $json_output = json_decode($json_data, true);
  4. print_r($json_data);
  5.        
  6. // doesn't work                                
  7. $data = json_decode(file_get_contents('includes/signups.txt'), true);
  8. print_r($data);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement