ask9 Posted December 17, 2010 Share Posted December 17, 2010 I tried these below, class Site extends Controller { function Site() { public $data = Array(); } } but it fail? Thanks in advanced. Quote Link to comment https://forums.phpfreaks.com/topic/221973-how-to-declare-array-variable-as-public-inside-a-class/ Share on other sites More sharing options...
trq Posted December 17, 2010 Share Posted December 17, 2010 class Site extends Controller { public $data = Array(); function Site() { } } Quote Link to comment https://forums.phpfreaks.com/topic/221973-how-to-declare-array-variable-as-public-inside-a-class/#findComment-1148602 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.