Created
March 5, 2021 19:17
-
-
Save tim-cotten/2c2a37f7cb3e0d5c6791305b7716cf49 to your computer and use it in GitHub Desktop.
PHP Bugs: Property Problems (Example E)
This file contains 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 | |
// ... $desc should be a JSON string ... | |
if (!empty($desc)) { | |
$desc_obj = json_decode($desc); | |
$action = $desc_obj->action; | |
$reasons = explode(',', $desc_obj->reasons); | |
// ... parsing logic for $reasons ... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment