hi guys,
i have a problem in my coding. i want to get the array keys + their values except for [] and replace them with "". i want to do this because i'm using a function to create a form. Since i'm developing a form generator.i need this help.
Here is the problem,
Array
(
[Teachers_no_id] => Array
(
[text] => Teachers_no_text
[type] => input
)
[Teacher_name_id] => Array
(
[text] => Teacher_name_text
[type] => input
)
)
i want to convert it to,
Array
(
"Teachers_no_id"=> Array
(
"text" => "Teachers_no_text",
"type" => "input"
)
"Teacher_name_id" => Array
(
"text" => "Teacher_name_text",
"type" => "input"
)
);
hope you'll help me out
thank you in advance.
-madawa-