Answer: Option 1 Uninitialized x is set to 0, thus if condition fails.
1 Answers 1 viewsAnswer: Option 4 The above syntax will produce an error, unlike the echo statement.
1 Answers 1 viewsAnswer: Option 4 The above syntax will produce an error, unlike the echo statement.
1 Answers 4 viewsAnswer: Option 2 Empty string is evaluated to 0.
1 Answers 1 viewsAnswer: Option 1 The value of a is evaluated to 1 as it has a value.
1 Answers 1 viewsAnswer: Option 1 Print returns true and thus the first if statement also is not executed.
1 Answers 1 viewsAnswer: Option 1 The . operator appends a string and returns true.
1 Answers 3 viewsAnswer: Option The function strlen($a) gives the length of the string,5, which is considered true.
1 Answers 1 viewsAnswer: Option 1 While accept does not accept anything other than a 0 or any other number as false and true.
1 Answers 1 viewsAnswer: Option 2 The stripos() function finds the position of the first occurrence of a string inside another string.
1 Answers 1 views