Keiichi
06-03-2001, 05:45 PM
i have a codes similar to:
$names = array(
"mon" => "money",
"chi" => "chicken"
};
i tried echoing $names[0] and $names[mon], and they both get "money"
when i use a form and lets say "mon" is a value of $thing after i submit it. i tried $names[$thing] and it doesn't output anything.
does anyone know how to get this to work using $thing?
$names = array(
"mon" => "money",
"chi" => "chicken"
};
i tried echoing $names[0] and $names[mon], and they both get "money"
when i use a form and lets say "mon" is a value of $thing after i submit it. i tried $names[$thing] and it doesn't output anything.
does anyone know how to get this to work using $thing?