MeTitus Posted January 2, 2008 Share Posted January 2, 2008 How can I declare a public/private constant which is static?? Thanks, MeTitus Link to comment https://forums.phpfreaks.com/topic/84176-const-visibility/ Share on other sites More sharing options...
hitman6003 Posted January 2, 2008 Share Posted January 2, 2008 Not really clear on what your asking for, but this may help: http://www.php.net/oop5 http://www.php.net/oop5.static Link to comment https://forums.phpfreaks.com/topic/84176-const-visibility/#findComment-428587 Share on other sites More sharing options...
MeTitus Posted January 2, 2008 Author Share Posted January 2, 2008 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.