Tag Info

New answers tagged

1

PHP itself does not care whether you use DOS or UNIX style line endings in the PHP code sections, because it simply ignores whitespace anyway, so both of those get ignored regardless. PHP interpreters do not know about the existence of Byte Order Marks in files, and so having a BOM at the start of the PHP file will cause that BOM to be output when the PHP ...


2

UNIX line endings (\n) and UTF-8 are just common code standards. As far as I can see, they are not even mentioned in the Coding Standards. Most (all?) core PHP files are just plain US-ASCII. Try to follow that path to keep your files as compatible as possible. If you use UTF-8, add a line at the start of a PHP file with an Encoding Cookie or file variable: ...



Top 50 recent answers are included