I have a multidimensional array and I need to replace a value of a key (form_id) in it.
$data = Array
(
[0] => Array
(
[product_id] => 1
[form_id] => 18
[product_name] => test tet
)
[1] => Array
(
[product_id] => 2
[form_id] => 18
[product_name] => test product
)
)
after replacing the "form_id" with value "My Form" then i need to return the whole multidimensional array. Please give me a solution, thanks in advance.
$data[0][form_id]to$data[0][Myform]? or make $data[0][form_id] = MyForm ?