Jump to content

Using Define


otuatail

Recommended Posts

I have at the very top of my web page the following. Not inside any function in case that would have a scope issue.

 

Define ('GROUP',  '1');

Define ('ROUNDOF16',  '2');

Define ('QUARTERFINAL',  '3');

Define ('SEMIFINAL',  '4');

Define ('FINAL',  '5');

 

Lower down I have

if($Round == 5)

 

This works but this

if($Round == FINAL) has error

 

Parse error: syntax error, unexpected T_FINAL in  .......

 

I thought this was correct !

 

 

Link to comment
https://forums.phpfreaks.com/topic/251725-using-define/
Share on other sites

Archived

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

×
×
  • 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.