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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.