PHPで仕事をしていると色々変なコードを見かける事があるので適当にまとめてみた。 タブ幅が自由 どういうエディタの設定になっているのだろうか。 function doSomethig($some, $thing) { $testa = 1; $testb = 2; if ($some) { callSomething(); return $thing; } $thing .= "a"; return $thing; } function deepFunc() { if ($this->data) { while($user = $this->getNextUser()) { if ($user['good']) { foreach ($user['rows'] as $row) { foreach ($row['children'] as $child) { if ($child['goo