Reply to Re: Probs with strlen ??

Your name:

Reply:


Posted by Janwillem Borleffs on 08/28/05 15:03

Hanjo Gr��ner wrote:
> Hello,
>
> I'm doing like this:
>
> if (strlen($Name_vor) > 0)
> echo '</table></fieldset>';
>
>
> But the program never goes into the 'echo' branch.
>
> I tried to get strlen($Name_vor) before the condition and it is
> definivly
>> 0
>

There might be a previous condition overwriting this one. BTW, as anything
above 0 evaluates as TRUE in PHP, you could simply do:

if (strlen($Name_vor))
echo '</table></fieldset>';

Or even:

if ($Name_vor)
echo '</table></fieldset>';


JW

[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

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