Echo Print

Hi guys

I understand that this would never be done normally,
but just to understand how the php processor works,
why does this code return 51?

[php]echo (print 5);[/php]

Does the presence of brackets cause the php processor to
check whether the containing statement is TRUE/FALSE?

Because print is a function : http://www.php.net/manual/en/function.print.php

and so is echo : http://us3.php.net/manual/en/function.echo.php

Sponsor our Newsletter | Privacy Policy | Terms of Service