|
Posted by PHPGB on 08/23/05 23:25
<comp.lang.php , Ken Robinson , sendspamhere@rbnsn.com>
<1124745948.eba2d174dc98eac000e32e39523bcf98@teranews>
<Mon, 22 Aug 2005 21:25:48 GMT>
> First suggestion: Avoid elseif's if at all possible. Use the switch()
> statement instead. <see http://www.php.net/switch>
>
> switch (article_get_field('type')) {snip code}
>
> Also, when posting code, try to use indentation so that the different
> code blocks can be determined.
>
That looked a nice bit of code and i've been meaning to learn about
switch() for ages , But i'm the opposite and most of the time I regard
indents as a curse .
if ($poo<>$poo)
{
php code
}
Each to their own .
--
www.phpguestbook.co.uk
[Back to original message]
|