What will be in the resulting array?
Anonymous Quiz
16%
[1] => 3, [1.5] => 4
35%
[1] => 2, [1.5] => 4
3%
[1] => 1, [1.5] => 3
23%
[1] => 1, [1.5] => 4
6%
[1] => 2, [2] => 3, [1.5] => 4
16%
[1] => 2, [2] => 2, [3] => 3, [1.5] => 4
Repating binary operations today. What will be the result?
Anonymous Quiz
12%
nothing
6%
Hard
12%
Medium
24%
Hard Medium
6%
Easy
6%
Hard Easy
12%
Medium Easy
24%
Hard Medium Easy
0%
error
What will be in `$result` after all?
Anonymous Quiz
4%
2 4 6
16%
12 12 12
24%
3 5 7
4%
2 3 4
28%
3 4 5
8%
12 13 14
16%
11 12 13
0%
Error
What will be in $array? PHP 8.1+
Anonymous Quiz
17%
[0, 1, 2]
55%
[a => 1, b => 2]
7%
[a => 0, 1, 2]
7%
[a => 0, b => 2]
14%
Uncaught Error: Cannot unpack array with string keys
How to fix this function to make it work properly?
Anonymous Quiz
8%
Change "fopen($path, 'rb')" to "fopen($path, 'r')"
17%
Remove "fclose($f)"
0%
Change "fread($f, 8)" to "fread($f, 4)"
33%
Change "fread($f, 8)" to "fread($f, 2)"
17%
Use special functions to compare binary data instead of "==="
17%
Change "\xFF\xD8" to "\xff\xd8"
8%
Change "\xFF\xD8" to "FFD8"
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
34%
string(6) "foobar"
23%
NULL
43%
Attempt to read property "dummy" on string
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); ```
```
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
What is the exact type of the result returned by "round(...)" function?
Anonymous Quiz
41%
float
24%
int
20%
float|int
14%
mixed