Re: [PHP] Passing an array as an argument

2002-03-14 Thread Rasmus Lerdorf
You can't put $a[][] inside a qouted string like that. Either use ${a[][]} or put it outside like this: Print( option value=\.$aOptions[1][0].\.$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

Re: [PHP] Passing an array as an argument.

2001-02-07 Thread Christian Reiniger
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) = each

Re: [PHP] Passing an array as an argument.

2001-02-06 Thread Web Admin
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

RE: [PHP] Passing an array as an argument.

2001-02-06 Thread Ryan Gaul
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 = $valbr"; } } process_members($asker_rank, $total_members, $email); Your