[PHP] Evaluating strings...

2007-04-10 Thread Anthony J. Maske
Hey, Thanks for the quick response on Retrieving parameters... This is another that has me stumped... if (trim($Line) = 'body') { $InBody = true; } elseif (trim($Line) = '/body') { $InBody = false; } $Line is a line from a html file, I'm trying to parse

Re: [PHP] Evaluating strings...

2007-04-10 Thread Chris
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

RE: [PHP] Evaluating strings...

2007-04-10 Thread Anthony J. Maske
Got it... Thanks mucho! Anthony J. Maske [EMAIL PROTECTED] http://home.comcast.net/~ajmaske -Original Message- From: Chris [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 10, 2007 9:03 PM To: Anthony J. Maske Cc: PHP General Subject: Re: [PHP] Evaluating strings... Anthony J

Re: [PHP] Evaluating strings...

2007-04-10 Thread Lori Lay
Anthony J. Maske wrote: Hey, Thanks for the quick response on Retrieving parameters... This is another that has me stumped... if (trim($Line) = 'body') { $InBody = true; } elseif (trim($Line) = '/body') { $InBody = false; } $Line is a line from a html