首页 > javascript > 如何制作c15和C27字符串。我想动态地使它成为字符串,以便我可以将它插入我的数据库

如何制作c15和C27字符串。我想动态地使它成为字符串,以便我可以将它插入我的数据库 (How to Make the c15 and C27 String. I want to make it string dynamically so that i can insert it to)

问题

https://i.stack.imgur.com/tF3nh.png

我想让它串起c15的数组和c 27的数组

array:4 [
  "c15"" => array:3 [
    0 => "tes1"
    1 => "tes3"
    2 => "test34"
  ]
  "c19" => "asdf"
  "c27"" => array:2 [
    0 => "aaaaa"
    1 => "bbbb"
  ]
  "c23" => "asdf"
]

解决方法

你可以尝试这个:$ a = $ {'c19'}; 我希望它有用。

问题

https://i.stack.imgur.com/tF3nh.png

I want to make it string the array of c15 and the array of c 27

array:4 [
  "c15"" => array:3 [
    0 => "tes1"
    1 => "tes3"
    2 => "test34"
  ]
  "c19" => "asdf"
  "c27"" => array:2 [
    0 => "aaaaa"
    1 => "bbbb"
  ]
  "c23" => "asdf"
]

解决方法

You can try this one: $a = ${'c19'}; I hope it's usefull.

相似信息