Re: How to compare variable to string contains "$" ???
| From: | Pablo Vera | Date: | Fri, 06 Oct 2000 17:09:28 +0000 |
| Subject: | Re: How to compare variable to string contains "$" ??? | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-3022@lists.php.net to get a copy of this message | ||
Mariusz:
Try this:
if ($table[$i][$j] == '$IN_UZ' ) # use single quotes.
a string delimited with single quotes will not expand variables and
the only escapes that are understood are \\ and \'.
Saludos,
Pablo Vera
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Friday, October 06, 2000, 6:52:23 AM, Mariusz wrote:
MT> Hi,
MT> I would like check somthing like this:
MT> if ($table[$i][$j] == "$IN_UZ" ) $IN_UZ -> this is string contains char
MT> "$", not a variable
MT> Regards,
MT> Mariusz