Vidyalelo
PHP · Q7

Basic PHP

Programming · PHP · question 7

Q7

Which of the following php statement/statements will store 111 in variable num? 1. int num = 111; 2. int mum = 111; 3. num = 111; 4. 111 = num;

A.
Both 1 and 2
B.
All of the mentioned
C.
Only 3
Answer
D.
Only 1

Answer: Option C

Solution

Answer: Option C
Solution:
You need not specify the datatype in php.