M
M
maiskiykot2017-10-09 13:01:59
PHP
maiskiykot, 2017-10-09 13:01:59

Why can PHP fail on locales?

I'm doing a simple check, but it doesn't work!

if (($value == ''  OR $value == 0) AND strstr("*",$arr[$key]))

In the first condition, it works if you apply double quotes, including for 0, and the second part of the condition does not work at all. What could be wrong in the locale, what are these inexplicable glitches? I use vertrigoserv.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
imhuman, 2017-10-09
@maiskiykot

Check the order of parametersstrstr

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question