string comparison
| From: | Support @ Fourthrealm.com | Date: | Fri, 23 Aug 2002 13:11:25 +0000 |
| Subject: | string comparison | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-113754@lists.php.net to get a copy of this message | ||
Would both of these generate the same result?
Is there an advantage of one over the other?
1) if (strcmp($section, 'logout'))
2) if ($section == 'logout'))Peter - - - - - - - - - - - - - - - - - - - - - Fourth Realm Solutions pbechard@fourthrealm.com http://www.fourthrealm.com Tel: 519-739-1652 - - - - - - - - - - - - - - - - - - - - -