Page 1 of 1

Can I declare Constant array

Posted: Wed Aug 29, 2007 10:34 pm
by johnhelen
Hello

When I declare like this

DEFINE ( "MYCODES", array("123","321"));

There is error:

Warning: Constants may only evaluate to scalar values in...

How I can fix this
Thanks

Posted: Thu Aug 30, 2007 1:51 am
by xpgeek
No you can not.

You can replace constant by static variable.