Created
July 7, 2013 15:24
-
-
Save franz-josef-kaiser/5943797 to your computer and use it in GitHub Desktop.
Tabs vs. Spaces
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 | |
/** | |
* Tabs vs. Spaces | |
*/ | |
// This is Tabs/Tabs | |
$array = ( | |
'some_var' => 'some_val', | |
'key' => 'val', | |
'k' => 'v', | |
'some_variable_here' => 'some_value_here', | |
); | |
// This is Spaces/Spaces | |
$array = ( | |
'some_var' => 'some_val', | |
'key' => 'val', | |
'k' => 'v', | |
'some_variable_here' => 'some_value_here', | |
); | |
// This is how everyone should do it! | |
// Tabs until the first character, then align with Spaces | |
$array = ( | |
'some_var' => 'some_val', | |
'key' => 'val', | |
'k' => 'v', | |
'some_variable_here' => 'some_value_here', | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment