You can't put $a[][] inside a qouted string like that. Either use
${a[][]} or put it outside like this:
Print(" ".$aOptions[1][1]."\n");
-Rasmus
On Thu, 14 Mar 2002, Mauricio Cuenca wrote:
> Hello,
>
> I've built a function that receives an array as an argument to create an
> HTML drop-do
Hello,
I've built a function that receives an array as an argument to create an
HTML drop-down list, but when I try to print the list this is all I got:
Array[1]
Array[1]
This is my code:
---
Function TextList($sName, $aOptions)
{
$nCount = Count($
Hello,
I've built a function that receives an array as an argument to create an
HTML drop-down list, but when I try to print the list this is all I got:
Array[1]
Array[1]
This is my code:
---
Function TextList($sName, $aOptions)
{
$nCount = Count($
On Tuesday 06 February 2001 18:18, April wrote:
> How do you pass an array as an argument to a function?
Just as any other variable. Read on...
> function process_members($asker_rank, $email) {
>
> global $database_mysql;
> mysql_select_db($database_mysql);
>
> while (list ($key, $val) = ea
())
{
...
}
allows you to have a default value for $email. So you can either pass it or
not.
-Original Message-
From: April [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 06, 2001 12:18 PM
To: PHP General
Subject: [PHP] Passing an array as an argument.
How do you pass an arr
ssage -
From: April
To: PHP General
Sent: Tuesday, February 06, 2001 8:48 PM
Subject: [PHP] Passing an array as an argument.
How do you pass an array as an argument to a function?
My code (or at least the important parts):
function process_members($asker_rank, $email) {
g
How do you pass an array as an argument to a function?
My code (or at least the important parts):
function process_members($asker_rank, $email) {
global $database_mysql;
mysql_select_db($database_mysql);
while (list ($key, $val) = each ($email)) {
echo "$key => $val";
}
}
##
7 matches
Mail list logo