I have some procedural code that i'm wanting to convert into classes(and
i'm a bit greeen to OOP), hopefully to offer them to the PHP community. I
keep all my config data in arrays of arrays, which i'd like to keep when i
move to a class model, but can't seem to find out the correct defintion
synt
On Wed, 30 Jun 2004 14:20:52 -0400, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
>
> I have some procedural code that i'm wanting to convert into classes(and
> i'm a bit greeen to OOP), hopefully to offer them to the PHP community. I
> keep all my config data in arrays of arrays, which i'd like t
Jeff,
>From my recent readings, and others please correct me here, I think you
need to first declare the variables inside the Class, i.e., var
$srvr['etime'] = array();
var $srvr['etime']['server'];
-- then assign a value to them:
var $srvr['etime']['server'] = '27.22.1.5:1433';
In other wor
On Wed, 30 Jun 2004 14:20:52 -0400, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
>
> I have some procedural code that i'm wanting to convert into classes(and
> i'm a bit greeen to OOP), hopefully to offer them to the PHP community.
I
> keep all my config data in arrays of arrays, which i'd like
VERY brief class introduction...
class database {
function database() { // function with the same name as class is the
'constructor'
$this->srvr = array(); // once you declare an array once, no need to
declare 'sub' arrays
$this->srvr['etime']['server']= '27.22.1.5:1433';