Website Hosting for Just 20 ForumCoin ~ Advertise on ForumCoin
52 Life Tips Banner
Webmaster forum. Website development, design & management. Graphic design. Blog / Forum Set-up, Management, Admin & News

PHP Concatenation Question?

Postby Fergal » 31 Oct 2013, 11:37

Code: Select all
$lo = 2;
$high = 7;
echo $lo < $high;


The above code outputs 1.

However,
Code: Select all
echo $lo < $high . " string";


doesn't concatenate " string" to that 1. Why is that?

I know there is a better way of doing all of the above, but I'm just trying to understand the concatenation issue.

Thanks!
  • 0

User avatar
Fergal
Site Admin
 
Posts: 14,863
Location: Ireland
ForumCoin: 14,858


Your Ad Here.

Return to Webmaster Questions, Discussion & News



Who is online

Users browsing this forum: Claude [Bot] and 4 guests

Reputation System ©'