Re: Re: [PHP] comparisons

2001-02-11 Thread Curtis Maurand
> that will work, but I prefer > Can I also write that like the following? > > if (!strcmp($pick1,$pick2)) > { >perform some action; > } Thanks. That works for me. Curtis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional com

Re: Re: [PHP] comparisons

2001-02-11 Thread Phil Driscoll
Can I also write that like the following? if (strcmp($pick1,$pick2) == 0) { perform some action; } that will work, but I prefer Can I also write that like the following? if (!strcmp($pick1,$pick2)) { perform some action; } Cheers Phil -- PHP General Mailing List (http://www.php.net