标签: php arrays
如何为相关数组键分配值,该数组键是某些函数调用的输出?代码示例可能会说清楚......
$myArray = ['k' => myFunction(arg1)];
答案 0 :(得分:-1)
$ myArray [' k'] = myFunction(arg1);