I want add special character to keys of my array, like this example.
how can i convert this array
$tmp = array(
"name" => "aya",
"number" => "10");
to
$tmp = array(
"[name]" => "aya",
"[number]" => "10");
"aya", "number" => "10"); to" /> "aya", "number" => "10"); to" /> "aya", "number" => "10"); to"/>
I want add special character to keys of my array, like this example.
how can i convert this array
$tmp = array(
"name" => "aya",
"number" => "10");
to
$tmp = array(
"[name]" => "aya",
"[number]" => "10");
Copyright © 2021 Jogjafile Inc.
You can use this code: