Vidyalelo
PHP · Q32

Functions

Programming · PHP · question 32

Q32

What will be the output of the following PHP code?

A.
0
B.
1
Answer
C.
0.5
D.
-0.5

Answer: Option B

Solution

Answer: Option B
Solution:
cos() gives the cos value of the argument. Here the function returns 1.