#35858 [Opn->Csd]: echo ternaries problem

From: Date: Sat, 31 Dec 2005 12:36:31 +0000
Subject: #35858 [Opn->Csd]: echo ternaries problem
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-91300@lists.php.net to get a copy of this message
ID: 35858 User updated by: mattias dot segerdahl at bitcom dot se Reported By: mattias dot segerdahl at bitcom dot se -Status: Open +Status: Closed Bug Type: *General Issues Operating System: Mandriva latest PHP Version: 5.1.1 New Comment: Didn't see the concatination.. sorry for the bugreport Previous Comments: ------------------------------------------------------------------------ [2005-12-31 13:33:19] mattias dot segerdahl at bitcom dot se Description: ------------ Echo without ternaries disregards some output Reproduce code: --------------- $true = true; echo "Is this true or false : " . $true?'true':'false'; Expected result: ---------------- Is this true or false : true Actual result: -------------- true ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=35858&edit=1

« previous php.bugs (#91300) next »