repo.or.cz
/
hiphop-php.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
import zend standard tests
[hiphop-php.git]
/
hphp
/
test
/
zend
/
good
/
ext-standard-file
/
file_variation7.php.expectf
blob
49663bc633fa2a75db1c82956d704d0d8b37c19b
1
file():
2
array(5) {
3
[0]=>
4
string(7) "Line 1
5
"
6
[1]=>
7
string(1) "
8
"
9
[2]=>
10
string(2) "
11
"
12
[3]=>
13
string(3) "
14
"
15
[4]=>
16
string(7) "\Line 3"
17
}
18
19
file() with FILE_IGNORE_NEW_LINES:
20
array(5) {
21
[0]=>
22
string(6) "Line 1"
23
[1]=>
24
string(0) ""
25
[2]=>
26
string(1) " "
27
[3]=>
28
string(2) " "
29
[4]=>
30
string(7) "\Line 3"
31
}
32
33
file() with FILE_SKIP_EMPTY_LINES:
34
array(5) {
35
[0]=>
36
string(7) "Line 1
37
"
38
[1]=>
39
string(1) "
40
"
41
[2]=>
42
string(2) "
43
"
44
[3]=>
45
string(3) "
46
"
47
[4]=>
48
string(7) "\Line 3"
49
}
50
51
file() with FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES:
52
array(4) {
53
[0]=>
54
string(6) "Line 1"
55
[1]=>
56
string(1) " "
57
[2]=>
58
string(2) " "
59
[3]=>
60
string(7) "\Line 3"
61
}