<<< Previous question <<< Question ID#0405.md >>> Next question >>>
What is the output of the following script?
$name = 'Judy';
$str1 = <<<EOF
Hello $name
EOF;
$str2 = <<<'EOF'
Goodbye $name;
EOF;
if (strpos($str1, $name) === false) {
echo 'a';
} else {
echo 'b';
}
if (strpos($str2, $name) === false) {
echo 'c';
} else {
echo 'd';
}
- A) bc
- B) Syntax Error
- C) ac
- D) bd
Answer
Answer: A