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

Deleting a record php
Attempting to setup delete a record page. The below code I put together doesn't seem to work.

session variables not working anymore
hello,
i use sessions to handle authentication within my site. my host has been changing a lot of

MySql timezone
Code: $sql = "SELECT *, date_format(date, '%m/%d/%Y at %I:%i %p' )as date FROM comments WHERE t

Embed Video Problem
Hey, thanks for looking!

File to be embedded:

Code: <playlist version="1&q

max function question
Hi All
Ihave a table that holds shipment numbers and dates like this

select * from

Display data returned from Ajaxservices!!
I have a question about displaying results using ajax. I have part of the code below.
$.ajax({

Mail Form receiving emails with no content
Hi, I hope someone here can help me.
I have a simple form in my website, it was working OK, after

Dynamically set AccordianPane Header
I have an accordian on my master page. I'd like to be able to dynamically change the header on diff

why aint this working?
i have this code:

Code: $num = 250;
$count = ($num - $rcount);

echo $rc

Amend code to allow multiple attachments
Hi

I have a php page that allows the user to browse to a file (image) then sumbit, the confi

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