tryingtolearn Posted November 11, 2009 Share Posted November 11, 2009 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? Link to comment https://forums.phpfreaks.com/topic/181111-solved-use-an-array-from-1-class-in-a-second-class/ Share on other sites More sharing options...
tryingtolearn Posted November 11, 2009 Author Share Posted November 11, 2009 Sloved by adding to a session. I suppose that works. Link to comment https://forums.phpfreaks.com/topic/181111-solved-use-an-array-from-1-class-in-a-second-class/#findComment-955609 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.