I have an array that looks like this:
$data = array (
  "card" => array(
               "id" => $_GET["id"],
               "user" => dynamicFunction($_GET["id"]),
               "Origin" => $data["card"]["user"]
));
I'm getting an error here.
How can I read the value from current array element user without calling dynamicFunction again since that function will execute DB query again. I don't want to overload my SQL server with unnecessary queries.
Thanks in advance!
 
    