On Tue, 2007-10-23 at 17:34 +0200, Julien Pauli wrote:
> <?php
> echo "coucou " . print('v ' . print('u ' . print('toctoc ') . 'hihi
> ') ) .
> 'tata ' . print('zozo ' . print('pupu '));

That's not cool, that's a mess. Why doe sit happen the way it does?
First off, print() is a function so nesting functions means the
innermost functions get processed first, this is why the output has
mangled order. The 1's show up in the output because you're
concatenating the return value of the print() function which is true for
success.

Cheers,
Rob. 
-- 
...........................................................
SwarmBuy.com - http://www.swarmbuy.com

    Leveraging the buying power of the masses!
...........................................................

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to