mattclements Posted August 21, 2009 Share Posted August 21, 2009 Hey all I am getting the following error: Parse error: syntax error, unexpected T_DOUBLE_ARROW with this code - seems like im missing something stupid! <?php if( (date("d") => 08) && (date("d") < 15) ) { echo "selected"; }; ?> Matt Link to comment https://forums.phpfreaks.com/topic/171273-solved-parse-error-syntax-error-unexpected-t_double_arrow/ Share on other sites More sharing options...
Garethp Posted August 21, 2009 Share Posted August 21, 2009 Shouldn't => be ==? I don't know much about =>, but it seems like it could be that. Also, ; does not go after } Link to comment https://forums.phpfreaks.com/topic/171273-solved-parse-error-syntax-error-unexpected-t_double_arrow/#findComment-903159 Share on other sites More sharing options...
mattclements Posted August 21, 2009 Author Share Posted August 21, 2009 Sorted it - Should be >= rather than => => is to do with setting arrays. Matt Link to comment https://forums.phpfreaks.com/topic/171273-solved-parse-error-syntax-error-unexpected-t_double_arrow/#findComment-903162 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.