Re: counting chars, if statement

From: Date: Thu, 17 Aug 2000 09:17:49 +0000
Subject: Re: counting chars, if statement
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-12187@lists.php.net to get a copy of this message
Hm, it works perfectly on my computer. Any other things around that could be disturbing ? Martin Anders Dannberg wrote: > Hello! > I have a small problem with the if-statement on the below example. Why > doesn't this work? I've also tried ($out != "5") but it won't display > anything. > Also tried "==", "<", ">".... What am i doing wrong? > > $string = "abcdefghijkl"; > $out = strlen($string); > if ($out != 5) { echo "... value is not 5"; > } > Thanks in advance. > Anders > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#12187) next »