Greetings, All!
I'm having a heck of a time with some code designed to check a price-string that is handed to it for the presence of the British Pound sign!
I've been using:
if (preg_match("/$currency_symbol[$y]/",$price_cell).... and echo statements prior to the statement confirm that $currency_symbol[$y] is equal to "£" and that $price cell is "£4.99".
I've even tried substituting $currency_symbol[$y] with "£" within the first parameter of the preg_match statement.
Did several Google-searches to try to find anybody who's had a similar problem, but apparently Google throws out the "£".
Checked php.net for preg_match. Someone there mentioned using double-escapes prior to doing a similar preg_match for a "$", so I tried this for my "£", but it didn't work.
Any advice?
Thanks!
-= Dave =-