Jump to content

Keep getting an unexpected T_STRING error.


GB12

Recommended Posts

I am in a beginners php class.  I am writing a function library right now.  I keep getting an unexpected T_STRING error on line 44.  Can anyone see an error in any of these lines?

 

function getAirline ($destination)
	{
		if ($destination == "Barcelona")
			return Web Airlines; //This is line 44
		elseif ($destination == "Cairo")
			return PHP Air;
		elseif ($destination == "Rome")
			return Air Java;
		elseif ($destination == "Santiago")
			return SQL Air;
		elseif ($destination == "Tokyo")
			return Object Oriented Airlines;
	}

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.