0v1.ro

(zero V unu)

PHP echo print question

Working with echo or print is very easy in PHP.
At the begining it might be harder to understand concatenations or operations order, but after you master them is really easy.
But there are some cases where you wonder how does this work ?!?!

What does this print?

Don’t rush to conclusions to fast.. Make sure you remember what echo and print do and what is the order of operations.

Hint 1: print also returns after the opration is done
Hint 2: echo and print are language constructs, not functions.

Click here to see the solution