Jump to content

Syntax Error


Bopo

Recommended Posts

Hi

 

I have a switch statement, and I am getting the following error when the switch statement is executed:

 

'Parse error: syntax error, unexpected T_DOUBLE_ARROW'

 

Here's a part of the switch statement

 

switch ($age) 
{

case ($age => 17 && <= 25) {     //this line is throwing the error
$age = 10;
	}
}

Link to comment
https://forums.phpfreaks.com/topic/137367-syntax-error/
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.