note 49665 added to language.control-structures
| From: | jpn_ko at wapda dot com | Date: | Fri, 04 Feb 2005 08:17:14 +0000 |
| Subject: | note 49665 added to language.control-structures | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-84502@lists.php.net to get a copy of this message | ||
I use "IF" to check the output of the file, the output of the file is $temp and my
criteria is $test. The following is my codes. Although after the "IF" statement, always
working the else condition.
if ($temp == $test) echo $test;
else echo "There is no Mr. $test";
----
Manual Page -- http://www.php.net/manual/en/language.control-structures.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+49665
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+49665&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+49665&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+49665&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+49665&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+49665&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+49665&report=yes
Search -- http://master.php.net/manage/user-notes.php