<snip>
$A_fruit_list = array('A1' => 'Fruit A1',
                      'A2' => 'Fruit A2',
                     );

$B_fruit_list = array('B1' => 'Fruit B1',
                      'B2' => 'Fruit B2',
                     );

then i do these:

$var = "B";
$var_list = $var."_fruit_list";

//Note: variable variable below
$fruit_array_of_choice = ${$var_list};
$FRUIT_code => array_keys($fruit_array),
$FRUIT_name => array_values($fruit_array),
</snip>

Shouldn't the parameter to array_keys (and obviously array_values too)
be $fruit_array_of_choice, and not just $fruit_array???

That might stop the warnings...

HTH,

Richy
==========================================
Richard Black
Systems Programmer, DataVisibility Ltd - http://www.datavisibility.com
Tel: 0141 435 3504
Email: [EMAIL PROTECTED] 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to