Last active
December 23, 2015 15:57
-
-
Save ABM-Dan/6d6afd25b597c43074e4 to your computer and use it in GitHub Desktop.
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 | |
// Version 1 | |
if ($condition) { | |
$variable = functionOne(); | |
} else { | |
$variable = functionTwo(); | |
} | |
$otherVariable = functionThree($variable); | |
// Version 2 | |
$variable = functionTwo(); | |
if ($condition) { | |
$variable = functionOne(); | |
} | |
$otherVariable = functionThree($variable); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment