Created
August 29, 2014 16:12
-
-
Save jordanorelli/345701ebd9697d80582c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$item = json_decode('{"key": "value"}'); | |
print_r($item); | |
$other_item = json_decode('{"key": "value"'); | |
print_r($other_item); | |
echo is_null($other_item); | |
$things = ["one": 1, "two": 2]; | |
print_r($things); | |
$old_three = $things["three"]; | |
$things["three"] = "fart"; | |
print_r($things); | |
$things["three"] = $old_three; | |
print_r($things); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment