logo CodeStepByStep logo

expressions_strings0

Language/Type: PHP expressions string
Author: Melissa Hovik (on 2018/01/05)

Trace the evaluation of the following expressions, and give their resulting values. Make sure to give a value of the appropriate type (such as including a " " quotes around a String).

"hello" . 4 . 2
(order shuffled)
1 . "abc" . 2
"abc" . (1 + 2)
1 + 2 . "abc"
"abc" . 9 * 3
"1" . 1
1 + 1 + 1 + "1" . 1 + 1 + 1
4 - 1 + "abc"
4 + "abc" - 1 * 4

You must log in before you can solve this problem.

Log In

Need help?

Stuck on an exercise? Contact your TA or instructor.

If something seems wrong with our site, please

Is there a problem? Contact us.