[ create a new paste ] login | about

Link: http://codepad.org/O9xa42cw    [ raw code | output | fork ]

PHP, pasted on Oct 23:
1
2
3
4
5
6
7
<?php

$orig = "foo\r";

echo sprintf("Length of original is %d", strlen($orig));
echo PHP_EOL;
echo sprintf("Length of trimmed string is %d", strlen(trim($orig)));


Output:
1
2
Length of original is 4
Length of trimmed string is 3


Create a new paste based on this one


Comments: