Re: Evaluating strings...

From: Date: Wed, 11 Apr 2007 04:02:59 +0000
Subject: Re: Evaluating strings...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-252554@lists.php.net to get a copy of this message
Anthony J. Maske wrote:
Hey, Thanks for the quick response on Retrieving parameters... This is another that has me stumped...
      if (trim($Line) = '<body>') {
That should be == basically that is trying to set trim($line) to be equal to '<body>' which won't work (and you get an error message). == means compare the values. === means compare the values AND the types (eg make sure they are both integers or strings). -- Postgresql & php tutorials http://www.designmagick.com/

« previous php.general (#252554) next »