You are here: Re: How to OS new line char « PHP Programming Language « IT news, forums, messages
Re: How to OS new line char

Posted by gosha bine on 08/28/07 08:03

On 28.08.2007 09:07 Fabio wrote:
> Hi,
>
> Each OS has its new line chars:

well, this is not completely true. Rather, every program, especially
browser, can have its own new line conventions.

>
> unix = \n
> mac = \r

this is not correct either. New versions of macOS use "\n", like other
unix-based systems.

> windows = \r\n
>
> Can I get the used one on the OS where php is running?

Why do you think you need this?

>
> I see that exists a DIRECTORY_SEPARATOR for the OS path ("/" or "\"), does
> not exists something like a "LINE_SEPARATOR"? :)
>
> Thanks
>
>


--
gosha bine

makrell ~ http://www.tagarga.com/blok/makrell
php done right ;) http://code.google.com/p/pihipi

 

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

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