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