Voltaire Posted July 1, 2013 Share Posted July 1, 2013 Heya - super easy I have php 5.3 installed on my CentOs 6 linux machine, and I want to use the <?= shorthand, but it doesnt seem to be working. What version of php do I need to get this working? Thanks .. Quote Link to comment https://forums.phpfreaks.com/topic/279748--/ Share on other sites More sharing options...
Barand Posted July 1, 2013 Share Posted July 1, 2013 Prior to 5.4 it works only if short php tags are enabled. From 5.4 it works regardless of the short tag setting Quote Link to comment https://forums.phpfreaks.com/topic/279748--/#findComment-1438777 Share on other sites More sharing options...
Voltaire Posted July 1, 2013 Author Share Posted July 1, 2013 Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/279748--/#findComment-1438789 Share on other sites More sharing options...
mac_gyver Posted July 1, 2013 Share Posted July 1, 2013 all of php's short-cuts should be avoided so that your code will be portable between different php versions or different php configurations, especially if you are trying to write portable code Quote Link to comment https://forums.phpfreaks.com/topic/279748--/#findComment-1438797 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.