Why does "print" prints from right to left?

Viewed 164

Can anyone please explain to me how this works:

<?php
    print 5 . print 6 . print 7;
?>

it prints: 76151

I know the 1 is the return value from the print function, but why are the functions called in reverse order?

3 Answers
Related