When i execute the code: echo 'a' . print('2') . 'c';
i get 2ca1
.
I can figure out that print('2')
write down 2 and echo print('1')
will print 1
But why letter ‘c’ is wrtitten down after print statement and not at the end?
I was expecting to see ‘2a1c’ instead.