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
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
try:
function process_members($asker_rank, $total_members, $email=array()) {
global $database_mysql;
mysql_select_db($database_mysql);
while (list ($key, $val) = each ($email)) {
echo "$key => $val";
}
}
process_members($asker_rank, $total_members, $email);
Your ori
Hi April,
I suggest you code your array into one string (it depends to the size)
then decode it at the other end using your own code. It's the easiest
trick to pass the array, compress it into one variable, then extract it at
the other end.
Any other ideas? ;-)
Ahmad
- Original Message
4 matches
Mail list logo