Last active
December 14, 2015 08:39
-
-
Save myano/5059195 to your computer and use it in GitHub Desktop.
This is an example of a styling preference seen in PHP that I find annoying.
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 | |
echo "I find this format for the brackets annoying."; | |
if (mynum < 10) { | |
echo "low"; | |
} | |
else { | |
echo "yay!"; | |
} | |
echo "I prefer the following format for the brackets."; | |
if (mynum < 10) | |
{ | |
echo "low"; | |
} | |
else | |
{ | |
echo "yay"; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment