Is this possible?

Well I know this method:

define('CLASSNAME', new CLASS(), true);

dosnt work as I have tried it - but is there a special way to do it?

thanks =) x

What are you trying to achieve ?

This is from the manual:
"The value of the constant; only scalar and null values are allowed. Scalar values are integer, float, string or boolean values. It is possible to define resource constants, however it is not recommended and may cause unpredictable behavior."

So, no objects.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.