counting chars, if statement
| From: | Anders Dannberg | Date: | Thu, 17 Aug 2000 09:09:13 +0000 |
| Subject: | counting chars, if statement | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-12186@lists.php.net to get a copy of this message | ||
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