4 ms·
Is it a PHP thing to indent with tabs rather than 2 spaces? Genuinely curious.
by pothibo 12y ago
Is it a PHP thing to indent with tabs rather than 2 spaces? Genuinely curious.
- mjburgess 12y agoNope, it's a ruby thing I believe.
- leeoniya 12y agoor maybe it's a javascript thing http://code.jquery.com/jquery-2.1.1.js http://code.jquery.com/jquery-2.1.1.js or maybe it's just a trolling thing.
- uses 12y agoThe community-organized PSR-2 standard [1], used by every major framework and open-source package, states: > Code MUST use 4 spaces for indenting, not tabs [1] http://www.php-fig.org/psr/psr-2/ http://www.php-fig.org/psr/psr-2/