RE: echo VS print : that's a cool behavior !

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> Hello everyone.
> 
> We all know the difference between print and echo, but has someone ever
> tried to combine them together ??
> 
> Right, try this :
> 
> <?php
> echo "coucou " . print('v ' . print('u ' . print('toctoc ') . 'hihi ') ) .
> 'tata ' . print('zozo ' . print('pupu '));
> 
> 
> And guess the result ...
> 
> Can someone explain it ?
> ( the result is : toctoc hihi u 1pupu zozo 1v 1tata 1coucou 1 )

Precedence.

_________________________________________________________________
Windows Live Hotmail and Microsoft Office Outlook – together at last.  Get it now.
http://office.microsoft.com/en-us/outlook/HA102225181033.aspx?pid=CL100626971033

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux