Mr.ElectroNick Mr.ElectroNick - 7 months ago 16
PHP Question

How to make Zend IDE 5.5.1 to not bother about backslashes?

I use Zend IDE and quite often use Analyze code to quickly find undeclared or unused variables. As all PHP developers I also use regular expressions.

So main question is where to set a checkbox or tune config file to disable these warnings:

Bad escape sequence: \s (line NN)

Thanks for answers!

Answer

Why don’t you just correct the mistyped string declarations. If you have the regular expression foo\sbar, write it as:

'foo\\sbar'
"foo\\sbar"