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 .. 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 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! 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 Link to comment https://forums.phpfreaks.com/topic/279748--/#findComment-1438797 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.