You are here: Re: ["HTTP_POST"} versus ['HTTP_POST'] « PHP Programming Language « IT news, forums, messages
Re: ["HTTP_POST"} versus ['HTTP_POST']

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация