RE: [PHP-WIN] How to compare variable to string contains "$" ???
| From: | Asendorf, John | Date: | Fri, 06 Oct 2000 11:52:55 +0000 |
| Subject: | RE: [PHP-WIN] How to compare variable to string contains "$" ??? | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-2997@lists.php.net to get a copy of this message | ||
Have you tried a preceding slash?
if ($table[$i][$j] == "\$IN_UZ" )
I'm not sure if it will work, but give it a try...
you could also use a regex... if the first one doesn't work, let me know
and I'll put together one for you.
John
---------------------
John Asendorf - jasendorf@lcounty.com
Web Applications Developer
http://www.lcounty.com - NEW FEATURES ADDED DAILY!
Licking County, Ohio, USA
740-349-3631
> -----Original Message-----
> From: Mariusz Topczewski [mailto:Mariusz.Topczewski@bianet.com.pl]
> Sent: Friday, October 06, 2000 7:52 AM
> To: php-windows@lists.php.net
> Subject: [PHP-WIN] How to compare variable to string contains "$" ???
>
>
> Hi,
>
> I would like check somthing like this:
>
> if ($table[$i][$j] == "$IN_UZ" ) $IN_UZ -> this is string
> contains char
> "$", not a variable
>
> Regards,
> Mariusz
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net
> For additional commands, e-mail: php-windows-help@lists.php.net
> To contact the list administrators, e-mail:
> php-list-admin@lists.php.net
>