note 95597 rejected from function.strcmp by danbrown
| From: | danbrown@php.net | Date: | Mon, 11 Jan 2010 16:54:26 +0000 |
| Subject: | note 95597 rejected from function.strcmp by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-164861@lists.php.net to get a copy of this message | ||
Note Submitter: cak_46 at yahoo dot com
----
what is difference between if take variable string value in single coated or we take it as in double
coated?
is there any difference between 1st & 2nd?
eg.
1)
<?PHP
$correct_username = 'logmein';
$what_visitor_typed = 'logMEin';
if ($what_visitor_typed != $correct_username) {
print("You're not a valid user of this site!");
}
?>
2)
<?PHP
$correct_username = "logmein";
$what_visitor_typed = "logMEin";
if ($what_visitor_typed != $correct_username) {
print("You're not a valid user of this site!");
}
?>
please reply me as soon as possible..........