note 8458 deleted from echo by torben

From: Date: Wed, 13 Sep 2000 22:17:43 +0000
Subject: note 8458 deleted from echo by torben
Groups: php.notes 
Request: Send a blank email to php-notes+get-4856@lists.php.net to get a copy of this message
Weird behaviour of echo and print outpup. PHP3 prints variable text that should be interposed between two static texts infront of the whole text. The following code: echo("<a href="javascript:pravy('messages.php3?folder=$folder[$i]');levy('folders.php3')">" . trans($folder[$i]) . " ($msg_num)</a><br>n"); produces: Received mail<a href="javascript:pravy('messages.php3?folder=INBOX');levy('folders.php3')"> (9)</a><br> Where "Received mail" is the text that should have occurred inside the hyperlink. trans(str) is my function that searches an associative array of strings and returns string in the actual language. I have absolutely no idea why echo produces something it was not told to produce. When used from other places in my code, trans() works as expected. Regards, Jakub Jermar

« previous php.notes (#4856) next »