Answered Sep 01, 2022
Answer: Option 1
The print statement will print what ever is present inside the double-quotes.
Answer: Option 1 Uninitialized x is set to 0, thus if condition fails.
Answer: Option 1 # is a single line comment.
Answer: Option 2 You can use tags like italics, bold etc. inside php script.
Answer: Option 4 It would have printed echo “Hello world” if the statement was echo “echo ”Hello World””;.
Answer: Option 4 You can not have php tags inside a php tag.
Answer: Option 2 Empty string is evaluated to 0.
Answer: Option 1 The value of a is evaluated to 1 as it has a value.
Answer: Option 1 Print returns true and thus the first if statement also is not executed.
Answer: Option 2 The stripos() function finds the position of the first occurrence of a string inside another string.
Answer: Option 1 Function Begining with “_” is valid)
Install the Bissoy app to consult with a doctor.
Log in to ask questions, provide answers, or leave comments.