我有一个这样的数组结果
Array
(
[e] => 6
[i] => 5
[s] => 4
[n] => 0
[t] => 0
)
我需要将数组格式更改为此,
Array
(
[0] => stdClass Object
(
[type] => e
[count] => 6
)
[1] => stdClass Object
(
[type] => i
[count] => 5
)
[2] => stdClass Object
(
[type] => s
[count] => 4
)
[3] => stdClass Object
(
[type] => n
[count] => 0
)
[4] => stdClass Object
(
[type] => t
[count] => 0
)
)
有什么办法可以改变吗?
郎朗坤