Skip to content

Instantly share code, notes, and snippets.

@jclapp23
Created August 5, 2015 19:08
Show Gist options
  • Save jclapp23/0927bb1e95bd5251ba88 to your computer and use it in GitHub Desktop.
Save jclapp23/0927bb1e95bd5251ba88 to your computer and use it in GitHub Desktop.
if($scheduleString){
$formattedSchedule = json_decode($scheduleString);
could be shortened to this because json_decode will return false if string doesnt exist or is garbage
if($formattedSchedule = json_decode($scheduleString)){
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment