Skip to content

Instantly share code, notes, and snippets.

@Southparkfan
Last active August 29, 2015 14:07
Show Gist options
  • Save Southparkfan/5c1730c7a5149bcc0477 to your computer and use it in GitHub Desktop.
Save Southparkfan/5c1730c7a5149bcc0477 to your computer and use it in GitHub Desktop.
MW syntax compared to WP's one
MW (deze zonder juiste indent geloof ik:
if ($iets == 1) {
echo "Hoi dit is {$iets}";
} elseif ($iets == 2) {
echo "En dit is {$iets}";
} else {
echo 'Doei';
}
WP:
if ($iets == 1)
{
echo "Hoi dit is {$iets}";
}
elseif ($iets == 2)
{
echo "En dit is {$iets}";
}
else
{
echo 'Doei';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment