Jump to content

[SOLVED] use an array from 1 class in a second class


tryingtolearn

Recommended Posts

I have a class that adds data to an array

 

Then I have a second class and I need to check if the data it returns is in the array created in the first class.

But I get undefined variable: Array name

 

Basically the array is empty outside of the first class.

 

Is it possible to use that array between classes?

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.