Jump to content

Syntax error in an array


eleven0

Recommended Posts

$quotes = array(
'This is my quote',
'Another quote',
'Another line'
);

 

Is it possible to use a variable in this array? if so, can someone show me the right way to do it? I keep receiving error.

 

I have these variables

 

$GLOBALS["nav"]
$GLOBALS["ver"]

 

I'm going to write an if statement, but i don't know the right syntax format.

 

Thanks

 

 

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