Skip to content

Instantly share code, notes, and snippets.

@jordanorelli
Created August 29, 2014 15:55
Show Gist options
  • Save jordanorelli/72ecacb21cbf260dfce4 to your computer and use it in GitHub Desktop.
Save jordanorelli/72ecacb21cbf260dfce4 to your computer and use it in GitHub Desktop.
<?php
$item = json_decode('{"key": "value"}');
print_r($item);
$other_item = json_decode('{"key": "value"');
print_r($other_item);
echo is_null($other_item);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment