- Hello you! How are you today?
- GREETING
- GREETING, Hello you! How are you today?
- “GREETING”,”Hello you! How are you today?”
Answer: Option 3 The code uses preg_match to check for a keyword and replies based on whether it is true (1) or false (0).
1 Answers 2 viewsAnswer: Option 1 This one works because b is declared independent of TV() also.
1 Answers 2 viewsAnswer: Option 2 Function b is declared twice.
1 Answers 4 viewsAnswer: Option 2 Constants do not need a $ before them, they are referenced by their variable names itself.
1 Answers 1 viewsAnswer: Option 2 Constants can be set as values for other constants.
1 Answers 1 viewsAnswer: Option 3 ${VAR_NAME} creates a new variable which is not same as VAR_NAME.
1 Answers 1 viewsAnswer: Option 2 Class constants cannot be defined outside class.
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 viewsAnswer: Option 4 By default constants are case sensitive. Hence an error will arise.
1 Answers 1 viewsAnswer: Option 1 By default constants are case sensitive. But the third parameter in define(), if set to true, makes constants case insensitive.
1 Answers 2 views