PHP Small Quizzes – Telegram
PHP Small Quizzes
45 subscribers
13 photos
Rare publications with zero hassle.

If the language version isn't specified it means the latest version on the date of the post.

Communication: @Stalinko
Download Telegram
A question from our subscriber 👨‍💻
Which of these 2 classes are properly defined (won't cause PHP to throw an error)?
Anonymous Quiz
13%
Both A and B are eligible
22%
Only A is eligible
39%
Only B is eligible
26%
Both will cause an error
What will be in result?
Anonymous Quiz
64%
bool(true)
36%
bool(false)
We want to remove all "(" and ")" from `$string`. Which of these will work?
Anonymous Quiz
8%
A, B, D
49%
A, D
3%
C, D
32%
B, C, D
8%
A, B
0%
B, C
Which function does NOT read data from file?
Anonymous Quiz
8%
file_get_contents()
5%
fread()
32%
file()
28%
readline()
10%
readfile()
17%
fgets()
👨‍💻 Which statement gives FALSE in result? (php 8.1)
Anonymous Quiz
16%
false == ''
50%
0 === '0'
12%
0 == false
9%
'1' == 1
13%
0.0 == '0'
What will be the result of this code (php 8.1+)?
```
echo intdiv(10.5, 2); ```
Anonymous Quiz
34%
5
15%
0.5
34%
Deprecated: Implicit conversion from float 10.5 to int loses precision
17%
5.25
👍1