use an array from 1 class in a second class


Posted on 16th Feb 2014 07:03 pm 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
Did you know?Explore Trending and Topic pages for more stories like this.

Basically the array is empty outside of the first class.

Is it possible to use that array between classes?
No comments posted yet

Your Answer:

Login to answer
187 Like 49 Dislike
Previous forums Next forums
Other forums

losing variables between php brackets
Hi

have got this code:
Code: $id=mysql_result($result,0,"itemid");
$title=mys

Need help/w Page: 1,2,3,4 function!
So I have this code im working on where it's ment to display seperate pages having 20 logs each
I

cURL Sending File as Post
This is a bit complicated, I'm just hoping someone else has run into this and knows how to do it a d

problem in pagination when processing with selectbox form
Hi,

I have a search form, with select boxes, if am selecting the value from the form, it work

image upload script not working with png
The basic process of this php code is to take the submitted file, convert it to a small JPG thumbnai

Mass activity scheduling
Hi experts,

Im facing some problems to deal with mass activity jobs.
When I run some

get multiple rows
Hi I want to get multiple rows from a db

I am using this for the db query
Code: public

no idea what to do...
I'm fed up. I had issues with code that I have working on a different site that didn't work on my cu

Converting numbers to months
The porgram works -just need the last function(month_convert_ to convert numbers to months -thanks.

Help: calling function
Hi,
Is it possible to call a php function on page close?
If yes, could you explain how and whe

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash