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

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

problem with GROUP BY and ORDER BY
i usually use this query to display the last 10 entries from a sql table:

Code: $query = &quo

CURL question
i am wondering if it's possible to use multi curl with login something like

login once to web

remove trailing slash from array
I have the following array which contains trailing slashes I need to remove. What is the best way to

some query on multilingual website
Hi all,

Which is the simplest and easiest method to make a website multilingual,
is it put

Help with setcookie()
Merry Xmas to those on this foruum
Older guy here with some experience but not allot so please be

Reading Most Recent CSV File in Directory
I thought I had wrapped this project up, but found out that the program I use to FTP a csv file to m

Script not running properly
Hello Everyone
This is a basic script for posting to a database. I'm not sure why it doesn't work

problem when runing a funciton
I am trying to connect to database using a funciton in a functions.php

<?php
funct

Open link with largest int string first
I have the following links i would like to open either all at once or one-by-one. How would i procee

error reporting
hey everyone

I have a production server in which I want error reporting but only on some page

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