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 )

[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