ted_chou12 Posted July 19, 2014 Share Posted July 19, 2014 Hi, I have an output of print_r here: Google_Service_Calendar_Acl_Resource Object ( [stackParameters:Google_Service_Resource:private] => Array ( [alt] => Array ( [type] => string [location] => query ) [fields] => Array ( [type] => string [location] => query ) [trace] => Array I am wondering what is the right syntax to create the instance and set the variables? Thanks, Ted Link to comment https://forums.phpfreaks.com/topic/289982-new-object-syntax-and-array-instance/ Share on other sites More sharing options...
ginerjm Posted July 19, 2014 Share Posted July 19, 2014 Create what instance? Set what variables? Mind giving us some more info? Link to comment https://forums.phpfreaks.com/topic/289982-new-object-syntax-and-array-instance/#findComment-1485695 Share on other sites More sharing options...
Rifts Posted July 21, 2014 Share Posted July 21, 2014 using the little info you gave maybe something like $newObj = Google_Service_Calendar_Acl_Resource(); Link to comment https://forums.phpfreaks.com/topic/289982-new-object-syntax-and-array-instance/#findComment-1485779 Share on other sites More sharing options...
trq Posted July 21, 2014 Share Posted July 21, 2014 using the little info you gave maybe something like $newObj = Google_Service_Calendar_Acl_Resource(); That assumes Google_Service_Calendar_Acl_Resource is a function which it is not. Link to comment https://forums.phpfreaks.com/topic/289982-new-object-syntax-and-array-instance/#findComment-1485786 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.