我使用php / mysql [duplicate]动态创建了一个表单字段标签

This question already has an answer here:

i want to change the key. this is the output once i submitted the form.

Array ( 
    [year] => 1 
    [event_name] => 2 
    [Sno] => 6 
    [First_name] => kodeesswaran 
    [Last_name] => thanagaraju 
    [Dept/Class] => cse 
    [topice] => test 
) 

i want to replace[Dept/class] to [Dept_class].

what array function i want to use to replace that forward(/)

</div>

You can just change the name="Dept/class" attribute on the form to name="Dept_class"