Jump to content

Calling strings from other php class


salman_ahad@yahoo.com

Recommended Posts

you have to put it inside the class which has the $string1 - 10 variables.

then to call it you need to create an object

 

i.e.

$object1 = new test1(constructor details);

 

then you can use

$array = $object1->shareStrings();

 

which will put the strings into $array.

 

read up on it.

http://www.php.net/manual/en/language.oop5.basic.php

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.