Reply to Re: If statement within an if statement

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация