Skip to content

Instantly share code, notes, and snippets.

@franz-josef-kaiser
Created July 7, 2013 15:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save franz-josef-kaiser/5943797 to your computer and use it in GitHub Desktop.
Save franz-josef-kaiser/5943797 to your computer and use it in GitHub Desktop.
Tabs vs. Spaces
<?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