Jump to content

Archived

This topic is now archived and is closed to further replies.

mattclements

[SOLVED] Parse error: syntax error, unexpected T_DOUBLE_ARROW

Recommended Posts

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

Share this post


Link to post
Share on other sites

Shouldn't => be ==? I don't know much about =>, but it seems like it could be that. Also, ; does not go after }

Share this post


Link to post
Share on other sites

Sorted it - Should be >= rather than =>

 

=> is to do with setting arrays.

 

Matt

Share this post


Link to post
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.