use an array from 1 class in a second class

Posted on 16th Feb 2014 by admin

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?

Other forums