note 104977 deleted from function.print by danbrown

From: Date: Thu, 21 Jul 2011 16:02:04 +0000
Subject: note 104977 deleted from function.print by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-181763@lists.php.net to get a copy of this message
Note Submitter: gk dot kaam at gmail dot com ---- It's because echo & print dont *return* string value, so you can't use them with the concatenation operator ( . ) It's like when you do a $bar = array(); echo 'FOO > ' . print_r($bar); The print_r($bar) will be printed and THEN the 'FOO >' whill be echoed That's because print_r as echo or print dosnt return value. The fact that the ouput starts from the right to the left is most likely linked to the way php handles concatenation, i guess.

« previous php.notes (#181763) next »