Skip to content

Instantly share code, notes, and snippets.

@jibone
Last active December 12, 2015 05:18
Show Gist options
  • Select an option

  • Save jibone/4720807 to your computer and use it in GitHub Desktop.

Select an option

Save jibone/4720807 to your computer and use it in GitHub Desktop.
// I don't think this works...
echo "<td><div class='days'><span>". ($v.if(isset($arr[$v])) { echo $arr[$v]; }) . "</span></div></td>"
// Try this instead....
if(isset($arr[$v])) {
echo "<td><div class='days'><span>". $v.$arr[$v]; . "</span></div></td>"
} else {
echo "<td><div class='days'><span>". $v ."</span></div></td>"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment