PHP Line Indentation

Posted by Tower on Stack Overflow See other posts from Stack Overflow or by Tower
Published on 2009-10-18T09:45:30Z Indexed on 2010/04/01 1:23 UTC
Read the original article Hit count: 381

Filed under:
|

Hi,

I'm curious to know, how many spaces of indentation do you prefer in PHP code?

function one()
{
 $one;
 function space()
 {
  $space;
 }
}

function two()
{
  $two;
  function spaces()
  {
    $spaces;
  }
}

function three()
{
   $three;
   function spaces()
   {
      $spaces;
   }
}

function four()
{
    $four;
    function spaces()
    {
        $spaces;
    }
}

Let's not make multiple answers for same identation, but use the +1 for answers that fit your preferences.

© Stack Overflow or respective owner

Related posts about php

Related posts about coding-style