-
Notifications
You must be signed in to change notification settings - Fork 46
Expand file tree
/
Copy pathinput-output.yml
More file actions
16 lines (16 loc) · 871 Bytes
/
input-output.yml
File metadata and controls
16 lines (16 loc) · 871 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
category: Input/Output
questions:
-
question: 'How does one access standard input/output and error streams in PHP?'
answers:
- {value: 'STDIN, STDOUT and STDERR constants', correct: true}
- {value: 'Use stdin(), stdout() and stderr() functions', correct: false}
- {value: 'PHP::STDIN, PHP::STDOUT and PHP::STDERR class constants', correct: false}
- {value: 'Use PHP::stdin(), PHP::stdout() and PHP::stderr() class functions', correct: false}
-
question: 'How to access standard error stream in PHP?'
answers:
- {value: '$stderr = STDERR;', correct: true}
- {value: '$stderr = fopen("php://stderr", "w");', correct: true}
- {value: '$stderr = stderr("w")', correct: false}
- {value: '$stderr = fwrite("php://stderr");', correct: false}