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. 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() { } } 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
Archived
This topic is now archived and is closed to further replies.