Re: Examples indentation once again
| From: | Simone Cortesi | Date: | Sat, 04 May 2002 11:39:45 +0000 |
| Subject: | Re: Examples indentation once again | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969345225@lists.php.net to get a copy of this message | ||
At 12.20 04/05/02 +0200, =?iso-8859-2?Q?S=B3awomir_Pucia?= wrote:
Please take a look at http://www.php.net/manual/en/function.mysql-create-db.php and then at http://www.php.net/manual/en/function.mysql-num-rows.php I don't think that the second one is less readable. Additionally, every example is placed in the table with cellpadding=5, which is IMHO enough indentation :-) If I can express my opinion, I'm -1 for this indenting.I prefer: http://www.php.net/manual/en/function.mysql-num-rows.php (the one without indentation). There is no reason for indenting the first line of code inside <?php. Indentation is useful to improve readability during if...then cycles: <?php and ?> are just opening and closing tags. So my vote goes to: NOT indenting the whole code.