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]
|