Ninjakreborn Posted August 6, 2010 Share Posted August 6, 2010 I have been using arrays and classes for awhile. However, I am having an issue I have never had before. I am using Codeignitor. I am getting a set of results. These results are returned as a class. Then I am looking through them and displaying them in a complex set. I am having to get some additional data and add it to it. Is there a way to add an array into a class as a class? For example. I have a class: Class->0->allthedata Class->1->allthedata Class->2->allthedata Class->3->allthedata Then I get my array Array[0][allthedata] Array[1][allthedata] Array[2][allthedata] I want to add that to the class Class->4->allthedata Class->5->allthedata Class->6->allthedata I am not sure if that makes sense. Is this possible? To just add some records at te end of the class with autonumbering. Link to comment https://forums.phpfreaks.com/topic/209941-strange-issue-arrays-and-classes/ Share on other sites More sharing options...
dolrichfortich Posted August 6, 2010 Share Posted August 6, 2010 Probably not because you cannot create a variable or a function using numbers only. Link to comment https://forums.phpfreaks.com/topic/209941-strange-issue-arrays-and-classes/#findComment-1095797 Share on other sites More sharing options...
trq Posted August 6, 2010 Share Posted August 6, 2010 Been a while Busy, Your going to need to be allot more descriptive with your issue. As dolrichfortich has pointed out, your example code won't work, so makes little sense. Link to comment https://forums.phpfreaks.com/topic/209941-strange-issue-arrays-and-classes/#findComment-1095799 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.