You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is the output of the following PHP script?
$string1 = 'foo' . 'bar';
$string2 = 'hello' + 'goodbye';
$string3 = "abc" + "123";
echo sprintf('%s - %s - %s', $string1, $string2, $string3);
Enter the exact script output
A) foobar - 0 - 123
B) 0
C) foo
D) bar
Answer
Answer: A, C
Hi,
I think there is an issue with question 323.
https://github.com/alceanicu/zce/blob/master/questions/0323.md
PHP < 8 Output: "foobar - 0 - 123" - Answer A
PHP 8 Output: "Fatal error: Uncaught TypeError: Unsupported operand types"
The text was updated successfully, but these errors were encountered: