RE: [PHP] echo VS print : that's a cool behavior !
| From: | Instruct ICC | Date: | Tue, 23 Oct 2007 16:26:58 +0000 |
| Subject: | RE: [PHP] echo VS print : that's a cool behavior ! | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-263554@lists.php.net to get a copy of this message | ||
> 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