I use code
<?php
$Str="Hello world!";
for ( $i = 0; $i < strlen($Str); $i++ ){
print $Str{$i};
}
and when i catch IP packets I found this
48 0d 0a 31 0d 0a - H ...1...
65 0d 0a 31 0d 0a - e ..1....
6c 0d 0a 31 0d 0a - l ...1...
6c 0d 0a 31 0d 0a - l ..1....
6f 0d 0a 31 0d 0a - o ..1....
20 0d 0a 31 0d 0a - ...1...
77 0d 0a 31 0d 0a - w ..1....
6f 0d 0a 31 0d 0a - o ..1....
72 0d 0a 31 0d 0a - r ..1....
6c 0d 0a 31 0d 0a - l ..1....
64 0d 0a 31 0d 0a - d ..1....
21 0d 0a 30 0d 0a 0d 0a - ! ..0....
Very strange, there are no octets 0d 0a 31 0d 0a and i dont send them to output stream.
But in browser is correct text printed
Hello world!
How to avoid outputting 0d 0a 31 0d 0a octets?
But if I use
<?php
$Str="Hello world!";
print $Str{$i};
}
anyway at the end
0d 0a 30 0d 0a 0d 0a
How to avoid outputting this octets?
Thanks.