|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-02-15 10:48 UTC] hholzgra@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 07:00:01 2025 UTC |
look at the following code : <? $s = chr(0x0a); print strlen($s); $fp =fopen("test.txt","w"); fwrite($fp,$s,1); fclose($fp); ?> the output on screen is 1(strlen($s)) but in my file, i get always 0x0d 0x0a. With Unix, i get only 0x0a in my file.