Jump to content

Strange issue (arrays and classes)


Ninjakreborn

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.