Re: Retrieving values from array on a class

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, October 14, 2006 5:18 pm, Kevin Waterson wrote:
>>>class returnConfigParams
>>> {
>>>
>>>  var $a;

>>>  function getMySQLParams()
>>>   {
>>>    include($_SERVER['DOCUMENT_ROOT']."/properties.php");
>>>
>>>    $values = array(0 => $a, 1 => $b, 2 => $c, 3 => $d);

You probably want $this->a instead of $a

And that also assumes you are using $this->a inside of properties.php...

But I don't think you can even *DO* an include() inside a class
definition, so that should be giving you an error...

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux