Re: Evaluating strings...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux