Include php script into php class
Posted: Wed Feb 10, 2010 6:49 am
Hi there,
I've a php script in certain file called a.php, contains php script:
<?
$variable1 = 'hello world';
?>
Now I have a php class in other file named b.php, and I want to access the $variable1 into a method in this class
how can I do this?
thanks
I've a php script in certain file called a.php, contains php script:
<?
$variable1 = 'hello world';
?>
Now I have a php class in other file named b.php, and I want to access the $variable1 into a method in this class
how can I do this?
thanks