开发者

Php concatenation of arrays

开发者 https://www.devze.com 2023-01-14 21:34 出处:网络
I have the next array($columsData): Array ( [avatar] => Array ( [title] => Avatar [sort] => [no_html_escape] => 1

I have the next array($columsData):

Array
(
    [avatar] => Array
        (
            [title] => Avatar
            [sort] => 
            [no_html_escape] => 1
        )
    [title] => Array
        (
            [title] 开发者_JAVA百科=> Title
            [sort] => 
        )
)

And how can i make this array like this:

Array
(
    [id] => Array
        (
            [title] => Id
            [no_html_escape] => 1
        )
    [avatar] => Array
        (
            [title] => Avatar
            [no_html_escape] => 1
        )
    [title] => Array
        (
            [title] => Title
            [no_html_escape] => 1
        )
)

Thank you.


$columsData['id']['title'] = 'id';
$columsData['id']['no_html_escape'] = 1;
0

精彩评论

暂无评论...
验证码 换一张
取 消