|
Posted by Roman on 07/07/07 13:18
joboils@hotmail.com wrote:
> I've inherited a huge, rambling site with numerous lines containing
> $_SERVER["HTTP_POST"]
> php.net says it should be single inverted commas, not double, yet
> everything seems to work. As it would be a considerable amount of
> work to change everything, can I safely leave things as they are?
> TIA.
In this case there is no difference between single and double.
You cannot break anything by changing it to single quotes and it's no
work at all, just do a global replace of one for another.
The only case a replace can break if there is a string like this:
'I am using $_SERVER["HTTP_POST"] variable'
will convert to:
'I am using $_SERVER['HTTP_POST'] variable'
and break the code into syntax error
Roman
Navigation:
[Reply to this message]
|