note 24886 added to language.operators.string

From: Date: Tue, 03 Sep 2002 21:48:18 +0000
Subject: note 24886 added to language.operators.string
Groups: php.notes 
Request: Send a blank email to php-notes+get-36080@lists.php.net to get a copy of this message
Hi. what about this? if(strlen($naam) < 2) { $errormsg = "wrong"; } if(strlen($tekst) < 3) { $errormsg .= "wrong also"; } if the length of $naam is 4 $errormsg will not be set the first time. Next is$tekst which is 45 long so this gives true in the second if, right? Well, i get: Undefined variable: errormsg in c:\program files\apache group\apache\htdocs\studie\guestbook_simple.php What's wrong in here -- http://www.php.net/manual/en/language.operators.string.php http://master.php.net/manage/user-notes.php?action=edit+24886 http://master.php.net/manage/user-notes.php?action=delete+24886 http://master.php.net/manage/user-notes.php?action=reject+24886

« previous php.notes (#36080) next »