Question for PHP Arrays

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

 



Hi,
I'm making a PHP Installer that is customizable by using plugins, I haven't
used PHP for a while and which I have forgotten some things about PHP *eek*..

Anyway, I want to know how to add things to an array. Like this:

$foobar = array()

$foobar['rar']['miaw']

Would that output come out (for the array) as:

array(
'rar' => 'miaw'
)

Please correct me if wrong. Also I need to ask one more question, would this
work:

$foobar = array()

function addToArray($int, $value) {
$foobar[$int][$value]
}

And with a function call addToArray(1, "meow") output as the array looking
like:

array(
'1' => 'meow'
)

--
Thanks,
dphiance (Saul Rennison)

[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