Jump to content

Const visibility


MeTitus

Recommended Posts

Hi hitman6003,

 

thanks for your reply,

 

This is what I wanted:

 

public static const $something = "aaa";

 

but it seems that const is already assign to the class rather then to the instance. What if I want an instance const?

 

and why can't a define its vsiibility:

 

public const $something = "aaa";

 

doesn't work either.

 

Thanks,

 

MeTitus

Link to comment
https://forums.phpfreaks.com/topic/84176-const-visibility/#findComment-428642
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.